Fixed room_name() to not fail when a timeslog has no location. Fixes a server 500 for agenda.json

- Legacy-Id: 12118
This commit is contained in:
Henrik Levkowetz 2016-10-12 14:17:22 +00:00
parent 39b9cae046
commit 23532102f8

View file

@ -775,7 +775,7 @@ class SchedTimeSessAssignment(models.Model):
@property @property
def room_name(self): def room_name(self):
return self.timeslot.location.name return self.timeslot.location.name if self.timeslot and self.timeslot.location else None
@property @property
def acronym(self): def acronym(self):