From b21cc8ee8cca0e8adf54f5744a5487a51e102f5a Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sat, 25 Nov 2023 19:39:01 +0100 Subject: [PATCH] =?UTF-8?q?M=C3=AAme=20pour=20un=20=C3=A9v=C3=A9nement=20?= =?UTF-8?q?=C3=A0=20plusieurs=20jours,=20on=20indique=20l'heure=20de=20d?= =?UTF-8?q?=C3=A9but=20si=20elle=20est=20disponible=20pour=20son=20premier?= =?UTF-8?q?=20jour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 2 -- src/agenda_culturel/templates/agenda_culturel/day-inc.html | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 0a8c720..2e74cb6 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -120,8 +120,6 @@ class Event(models.Model): tags = ArrayField(models.CharField(max_length=64), verbose_name=_('Tags'), help_text=_("A list of tags that describe the event."), blank=True, null=True) - def single_day(self): - return not self.end_day or self.end_day == self.start_day def get_absolute_url(self): return reverse("view_event", kwargs={"pk": self.pk, "extra": slugify(self.title)}) diff --git a/src/agenda_culturel/templates/agenda_culturel/day-inc.html b/src/agenda_culturel/templates/agenda_culturel/day-inc.html index 8f560f2..1d02ff2 100644 --- a/src/agenda_culturel/templates/agenda_culturel/day-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/day-inc.html @@ -30,7 +30,7 @@