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:
parent
39b9cae046
commit
23532102f8
|
@ -775,7 +775,7 @@ class SchedTimeSessAssignment(models.Model):
|
|||
|
||||
@property
|
||||
def room_name(self):
|
||||
return self.timeslot.location.name
|
||||
return self.timeslot.location.name if self.timeslot and self.timeslot.location else None
|
||||
|
||||
@property
|
||||
def acronym(self):
|
||||
|
|
Loading…
Reference in a new issue