empty title no :

This commit is contained in:
j 2023-12-03 15:13:23 +01:00
parent 07f16c947f
commit ee2be2f6dd
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ''