orderings on schedules
This commit is contained in:
parent
91366dcd24
commit
1b57961061
2 changed files with 5 additions and 0 deletions
|
@ -64,6 +64,7 @@ class Section(models.Model):
|
|||
class Meta(object):
|
||||
verbose_name = _("section")
|
||||
verbose_name_plural = _("sections")
|
||||
ordering = ["start_date"]
|
||||
|
||||
|
||||
def current_conference():
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue