From ee2be2f6ddfa64420d6de85d44726fe21c23edef Mon Sep 17 00:00:00 2001 From: j Date: Sun, 3 Dec 2023 15:13:23 +0100 Subject: [PATCH] empty title no : --- app/item/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/item/views.py b/app/item/views.py index d9800d5..77ccbc2 100644 --- a/app/item/views.py +++ b/app/item/views.py @@ -36,7 +36,7 @@ def format_week(week): a = a.strftime(fmt) b = b.strftime(fmt) extra = models.Week.objects.filter(monday=week).first() - if extra: + if extra and extra.title: extra = ': ' + extra.title else: extra = ''