Skip to content

Commit 129cccb

Browse files
committed
Summary: Fixed problem with timeslot.location = None in agenda_csv.
Commit ready for merge. - Legacy-Id: 10062
1 parent acda842 commit 129cccb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/meeting/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,15 @@ def slides_field(item):
457457
row.append("r{}".format(item.timeslot.pk))
458458
elif item.timeslot.type_id == "other":
459459
row.append("None")
460-
row.append(item.timeslot.location.name)
460+
row.append(item.timeslot.location.name if item.timeslot.location else "")
461461
row.append("")
462462
row.append(item.session.historic_group.acronym)
463463
row.append(item.session.historic_group.historic_parent.acronym.upper() if item.session.historic_group.historic_parent else "")
464464
row.append(item.session.name)
465465
row.append(item.session.pk)
466466
elif item.timeslot.type_id == "plenary":
467467
row.append(item.session.name)
468-
row.append(item.timeslot.location.name)
468+
row.append(item.timeslot.location.name if item.timeslot.location else "")
469469
row.append("")
470470
row.append(item.session.historic_group.acronym if item.session.historic_group else "")
471471
row.append("")
@@ -475,7 +475,7 @@ def slides_field(item):
475475
row.append(slides_field(item))
476476
elif item.timeslot.type_id == "session":
477477
row.append(item.timeslot.name)
478-
row.append(item.timeslot.location.name)
478+
row.append(item.timeslot.location.name if item.timeslot.location else "")
479479
row.append(item.session.historic_group.historic_parent.acronym.upper() if item.session.historic_group.historic_parent else "")
480480
row.append(item.session.historic_group.acronym if item.session.historic_group else "")
481481
row.append("BOF" if item.session.historic_group.state_id in ("bof", "bof-conc") else item.session.historic_group.type.name)

0 commit comments

Comments
 (0)