diff options
Diffstat (limited to 'app/locations/models.py')
-rw-r--r-- | app/locations/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/locations/models.py b/app/locations/models.py index bab2c15..e0409eb 100644 --- a/app/locations/models.py +++ b/app/locations/models.py @@ -488,6 +488,9 @@ class Walk(models.Model): def __str_(self): return self.title + class Meta: + ordering = ('-date_walked',) + def get_rating(self): return int(self.rating) |