From cc5b8e88e666d817c929f45c6eb0972fccc976f7 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 5 Apr 2014 17:24:31 -0500 Subject: [PATCH] Races: order updates by event time --- races/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/races/models.py b/races/models.py index b943993..293ff7c 100644 --- a/races/models.py +++ b/races/models.py @@ -45,6 +45,9 @@ class RaceUpdate(models.Model): update = models.TextField() event_time = models.DateTimeField(default=timezone.now) + class Meta: + ordering = ['event_time',] + def __unicode__(self): """Text representation of a race update."""