Fixed rooms queryset to be ordered
This commit is contained in:
parent
14f43da962
commit
69097d86c9
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class TimeTable(object):
|
|||
return Slot.objects.filter(day=self.day)
|
||||
|
||||
def rooms(self):
|
||||
return Room.objects.filter(day=self.day.schedule)
|
||||
return Room.objects.filter(day=self.day.schedule).order_by("order")
|
||||
|
||||
def __iter__(self):
|
||||
times = sorted(set(itertools.chain(*self.slots_qs().values_list("start", "end"))))
|
||||
|
|
Loading…
Reference in a new issue