empty title no :

This commit is contained in:
j 2023-12-03 15:13:23 +01:00
parent 07f16c947f
commit ee2be2f6dd

View file

@ -36,7 +36,7 @@ def format_week(week):
a = a.strftime(fmt) a = a.strftime(fmt)
b = b.strftime(fmt) b = b.strftime(fmt)
extra = models.Week.objects.filter(monday=week).first() extra = models.Week.objects.filter(monday=week).first()
if extra: if extra and extra.title:
extra = ': ' + extra.title extra = ': ' + extra.title
else: else:
extra = '' extra = ''