fix a bug discovered with adhoc testing
- Legacy-Id: 9599
This commit is contained in:
parent
0ba095e229
commit
3bf1beb030
|
@ -55,7 +55,7 @@ def build_timeslots(meeting,room=None):
|
||||||
slots = meeting.timeslot_set.filter(type='session')
|
slots = meeting.timeslot_set.filter(type='session')
|
||||||
|
|
||||||
# Don't do anything if the room is not capable of handling sessions
|
# Don't do anything if the room is not capable of handling sessions
|
||||||
if not room.session_types.filter(slug='session'):
|
if room and not room.session_types.filter(slug='session'):
|
||||||
return
|
return
|
||||||
|
|
||||||
if room:
|
if room:
|
||||||
|
|
Loading…
Reference in a new issue