summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/sightings/models.py1
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):