From f8724b5be35197b3dbfb017e41ca32cd89bf8f67 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 8 Aug 2016 21:16:43 +0200 Subject: [PATCH] show date on schedule day detail page --- program/templates/program_day.html | 2 +- program/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/program/templates/program_day.html b/program/templates/program_day.html index ddecdd30..05e2663e 100644 --- a/program/templates/program_day.html +++ b/program/templates/program_day.html @@ -1,7 +1,7 @@ {% extends 'program_base.html' %} {% block program_content %} - +

{{ date|date:"I, F jS" }}

{% for event in events %} {% ifchanged event.event_type %} {% if not forloop.first %}{% endif %} diff --git a/program/views.py b/program/views.py index 38b73162..47e8b93f 100644 --- a/program/views.py +++ b/program/views.py @@ -64,6 +64,7 @@ class ProgramDayView(TemplateView): day = int(kwargs['day']) date = datetime.date(year=year, month=month, day=day) day = Day.objects.filter(date=date) + context['date'] = date context['events'] = models.Event.objects.filter(days=day).order_by('start', 'event_type') context['event_types'] = models.EventType.objects.all() context['days'] = Day.objects.filter(date__year=year)