show date on schedule day detail page
This commit is contained in:
parent
c20e1e55cc
commit
f8724b5be3
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'program_base.html' %}
|
{% extends 'program_base.html' %}
|
||||||
|
|
||||||
{% block program_content %}
|
{% block program_content %}
|
||||||
|
<h2>{{ date|date:"I, F jS" }}</h2>
|
||||||
{% for event in events %}
|
{% for event in events %}
|
||||||
{% ifchanged event.event_type %}
|
{% ifchanged event.event_type %}
|
||||||
{% if not forloop.first %}</div>{% endif %}
|
{% if not forloop.first %}</div>{% endif %}
|
||||||
|
|
|
@ -64,6 +64,7 @@ class ProgramDayView(TemplateView):
|
||||||
day = int(kwargs['day'])
|
day = int(kwargs['day'])
|
||||||
date = datetime.date(year=year, month=month, day=day)
|
date = datetime.date(year=year, month=month, day=day)
|
||||||
day = Day.objects.filter(date=date)
|
day = Day.objects.filter(date=date)
|
||||||
|
context['date'] = date
|
||||||
context['events'] = models.Event.objects.filter(days=day).order_by('start', 'event_type')
|
context['events'] = models.Event.objects.filter(days=day).order_by('start', 'event_type')
|
||||||
context['event_types'] = models.EventType.objects.all()
|
context['event_types'] = models.EventType.objects.all()
|
||||||
context['days'] = Day.objects.filter(date__year=year)
|
context['days'] = Day.objects.filter(date__year=year)
|
||||||
|
|
Loading…
Reference in a new issue