Guard against sessions that have no timeslot (such as for groups that are not officially not meeting at an IETF meeting) in the materials upload views. Commit ready for merge.
- Legacy-Id: 12316
This commit is contained in:
parent
e3c3b716cd
commit
3c04782559
|
@ -1150,7 +1150,8 @@ def upload_session_bluesheets(request, session_id, num):
|
|||
bluesheet_sp.rev = doc.rev
|
||||
bluesheet_sp.save()
|
||||
else:
|
||||
sess_time = session.official_timeslotassignment().timeslot.time
|
||||
ota = session.official_timeslotassignment()
|
||||
sess_time = ota and ota.timeslot.time
|
||||
if session.meeting.type_id=='ietf':
|
||||
name = 'bluesheets-%s-%s-%s' % (session.meeting.number,
|
||||
session.group.acronym,
|
||||
|
@ -1238,7 +1239,8 @@ def upload_session_minutes(request, session_id, num):
|
|||
minutes_sp.rev = doc.rev
|
||||
minutes_sp.save()
|
||||
else:
|
||||
sess_time = session.official_timeslotassignment().timeslot.time
|
||||
ota = session.official_timeslotassignment()
|
||||
sess_time = ota and ota.timeslot.time
|
||||
if session.meeting.type_id=='ietf':
|
||||
name = 'minutes-%s-%s' % (session.meeting.number,
|
||||
session.group.acronym)
|
||||
|
@ -1332,8 +1334,8 @@ def upload_session_agenda(request, session_id, num):
|
|||
doc = agenda_sp.document
|
||||
created = False
|
||||
else:
|
||||
|
||||
sess_time = session.official_timeslotassignment() and session.official_timeslotassignment().timeslot.time
|
||||
ota = session.official_timeslotassignment()
|
||||
sess_time = ota and ota.timeslot.time
|
||||
if session.meeting.type_id=='ietf':
|
||||
name = 'agenda-%s-%s' % (session.meeting.number,
|
||||
session.group.acronym)
|
||||
|
|
Loading…
Reference in a new issue