Skip to content

Commit 2353210

Browse files
committed
Fixed room_name() to not fail when a timeslog has no location. Fixes a server 500 for agenda.json
- Legacy-Id: 12118
1 parent 39b9cae commit 2353210

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ def __unicode__(self):
775775

776776
@property
777777
def room_name(self):
778-
return self.timeslot.location.name
778+
return self.timeslot.location.name if self.timeslot and self.timeslot.location else None
779779

780780
@property
781781
def acronym(self):

0 commit comments

Comments
 (0)