diff --git a/app/event/models.py b/app/event/models.py index d85dfdf..67c11c0 100644 --- a/app/event/models.py +++ b/app/event/models.py @@ -46,7 +46,7 @@ class Event(models.Model): start.append(1) start_only_month = True 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') if start_only_month: @@ -55,7 +55,7 @@ class Event(models.Model): end_date = datetime(*end).strftime('%d %B, $y') if end_only_month: end_date = ' '.join(end_date.split(' ')[1:]) - display_date += ' — '+ end_date + display_date += ' — ' + end_date return display_date def media_html(self):