Fix sort order for slots

This commit is contained in:
Tobias 2019-01-12 12:20:39 +13:00
parent d71edf553e
commit 77bc4e42b1

View file

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