orderings on schedules

This commit is contained in:
Luke Hatcher 2013-01-27 04:48:11 -05:00
parent 91366dcd24
commit 1b57961061
2 changed files with 5 additions and 0 deletions

View file

@ -64,6 +64,7 @@ class Section(models.Model):
class Meta(object):
verbose_name = _("section")
verbose_name_plural = _("sections")
ordering = ["start_date"]
def current_conference():

View file

@ -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):