From 727f505307dfd674e0459407756f222a661c8ebb Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Fri, 18 Oct 2024 18:36:34 +0200 Subject: [PATCH] =?UTF-8?q?fix=20erreur=20si=20location=20non=20d=C3=A9fin?= =?UTF-8?q?ie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/forms.py b/src/agenda_culturel/forms.py index 26a666b..3ff6c20 100644 --- a/src/agenda_culturel/forms.py +++ b/src/agenda_culturel/forms.py @@ -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 ]