diff --git a/symposion/conference/models.py b/symposion/conference/models.py index 66a83054..4bb6b8ce 100644 --- a/symposion/conference/models.py +++ b/symposion/conference/models.py @@ -64,6 +64,7 @@ class Section(models.Model): class Meta(object): verbose_name = _("section") verbose_name_plural = _("sections") + ordering = ["start_date"] def current_conference(): diff --git a/symposion/schedule/models.py b/symposion/schedule/models.py index ed1ff439..fdafd85f 100644 --- a/symposion/schedule/models.py +++ b/symposion/schedule/models.py @@ -14,6 +14,9 @@ class Schedule(models.Model): def __unicode__(self): return "%s Schedule" % self.section + + class Meta: + ordering = ["section"] class Day(models.Model): @@ -26,6 +29,7 @@ class Day(models.Model): class Meta: unique_together = [("schedule", "date")] + ordering = ["date"] class Room(models.Model):