From c62ba22f13d9b1eedcf6c49511dac167c8be4fea Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Fri, 29 Oct 2010 05:15:55 -0400 Subject: [PATCH] Checkins should always order top-down by timestamp... --- redditors/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redditors/models.py b/redditors/models.py index 6aeddbe..29c7c03 100644 --- a/redditors/models.py +++ b/redditors/models.py @@ -47,6 +47,9 @@ class Checkin(models.Model): timestamp = models.DateTimeField(auto_now=True) estimated_time_here = models.CharField(max_length=200, blank=True, null=True) identify_by = models.CharField(max_length=200, blank=True, null=True) + + class Meta: + ordering = ('-timestamp',) class Tip(models.Model): """