Actually fix slot ordering

This commit is contained in:
Tobias 2019-01-12 13:12:21 +13:00
parent 77bc4e42b1
commit 590b25d5f8

View file

@ -184,7 +184,7 @@ class Slot(models.Model):
select_related = ('kind__schedule__section', 'day') select_related = ('kind__schedule__section', 'day')
class Meta: class Meta:
ordering = ["day", "kind__schedule", "start", "end"] ordering = ["day__schedule__section__name", "day", "start" ]
verbose_name = _("slot") verbose_name = _("slot")
verbose_name_plural = _("slots") verbose_name_plural = _("slots")