Races: order updates by event time
This commit is contained in:
parent
c8a72cf8a5
commit
cc5b8e88e6
@ -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."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user