fix erreur si location non définie

This commit is contained in:
Jean-Marie Favreau 2024-10-18 18:36:34 +02:00
parent 67433f2b72
commit 727f505307

View File

@ -236,7 +236,7 @@ class SelectEventInList(Form):
super().__init__(*args, **kwargs)
self.fields["event"].choices = [
(e.pk, str(e.start_day) + " " + e.title + ", " + e.location) for e in events
(e.pk, str(e.start_day) + " " + e.title + ((", " + e.location) if e.location else "")) for e in events
]