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:
Henrik Levkowetz 2017-06-13 09:59:05 +00:00
parent 6bf0e558ea
commit bd0a772f17

View file

@ -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: