Races: order updates by event time

This commit is contained in:
Brian S. Stephan 2014-04-05 17:24:31 -05:00
parent c8a72cf8a5
commit cc5b8e88e6
1 changed files with 3 additions and 0 deletions

View File

@ -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."""