This commit is contained in:
j 2022-04-12 14:10:51 +01:00
parent a1e09a37f8
commit 95572b76dd

View file

@ -46,7 +46,7 @@ class Event(models.Model):
start.append(1) start.append(1)
start_only_month = True start_only_month = True
start = [int(p) for p in start] start = [int(p) for p in start]
end = [int(p) for p in end]: end = [int(p) for p in end]
display_date = datetime(*start).strftime('%d %B, $y') display_date = datetime(*start).strftime('%d %B, $y')
if start_only_month: if start_only_month:
@ -55,7 +55,7 @@ class Event(models.Model):
end_date = datetime(*end).strftime('%d %B, $y') end_date = datetime(*end).strftime('%d %B, $y')
if end_only_month: if end_only_month:
end_date = ' '.join(end_date.split(' ')[1:]) end_date = ' '.join(end_date.split(' ')[1:])
display_date += ''+ end_date display_date += '' + end_date
return display_date return display_date
def media_html(self): def media_html(self):