diff options
author | luxagraf <sng@luxagraf.net> | 2018-02-04 10:49:22 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-02-04 10:49:22 -0600 |
commit | 7109f9d3b7ec1cd445919fca1e320c9757f30edb (patch) | |
tree | 9357732f78420e6d32a51b7159e31ea1b1f145f9 | |
parent | b48202fe937c9454450cd03a1a3896f9801436bd (diff) |
added get_latest_by to sightings
-rw-r--r-- | app/sightings/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/sightings/models.py b/app/sightings/models.py index 096fa03..96e0b5e 100644 --- a/app/sightings/models.py +++ b/app/sightings/models.py @@ -89,6 +89,7 @@ class Sighting(models.Model): class Meta: ordering = ["-date", ] + get_latest_by = "date" @property def state(self): |