Added a guard against trying to get the room ID from a timeslot without location in the secretariat schedule view.
- Legacy-Id: 13592
This commit is contained in:
parent
6bf0e558ea
commit
bd0a772f17
|
@ -725,7 +725,7 @@ def schedule(request, meeting_id, schedule_name, acronym):
|
|||
timeslot = get_timeslot(s, schedule=schedule)
|
||||
|
||||
if timeslot:
|
||||
d['room'] = timeslot.location.id
|
||||
d['room'] = timeslot.location.id if timeslot.location else None
|
||||
d['day'] = timeslot.time.isoweekday() % 7 + 1 # adjust to django week_day
|
||||
d['time'] = timeslot.time.strftime('%H%M')
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue