Permalink
Browse files

orderings on schedules

  • Loading branch information...
1 parent 91366dc commit 1b579610618f03f54fdd728bf29543024dc2678d @lukeman lukeman committed Jan 27, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 symposion/conference/models.py
  2. +4 −0 symposion/schedule/models.py
View
1 symposion/conference/models.py
@@ -64,6 +64,7 @@ def __unicode__(self):
class Meta(object):
verbose_name = _("section")
verbose_name_plural = _("sections")
+ ordering = ["start_date"]
def current_conference():
View
4 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 @@ def __unicode__(self):
class Meta:
unique_together = [("schedule", "date")]
+ ordering = ["date"]
class Room(models.Model):

0 comments on commit 1b57961

Please sign in to comment.