Commit 5dc43c16 authored by fred's avatar fred
Browse files

only display new emissions on homepage (arbitrary date for now)

parent 0a2f32c0
...@@ -405,7 +405,8 @@ class Home(TemplateView): ...@@ -405,7 +405,8 @@ class Home(TemplateView):
context = super(Home, self).get_context_data(**kwargs) context = super(Home, self).get_context_data(**kwargs)
context['sectionName'] = "Home" context['sectionName'] = "Home"
context['focus'] = NewsItem.objects.select_related('category').filter(focus=True).exclude(image__isnull=True).exclude(image__exact='').order_by('-date')[:9] context['focus'] = NewsItem.objects.select_related('category').filter(focus=True).exclude(image__isnull=True).exclude(image__exact='').order_by('-date')[:9]
context['emissions'] = list(Emission.objects.filter(archived=False).order_by('title')) context['emissions'] = Emission.objects.filter(archived=False,
creation_timestamp__gte=datetime(2013, 9, 13)).order_by('title')
schedules = Schedule.objects.select_related().order_by('datetime') schedules = Schedule.objects.select_related().order_by('datetime')
days = [] days = []
for day in range(7): for day in range(7):
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
{% endblock %} {% endblock %}
{% block links %} {% block links %}
<div class="wrapper"> <div class="wrapper">
<h2><a href="{% url 'emissions' %}">Émissions</a></h2> <h2><a href="{% url 'emissions' %}">Nouvelles émissions dans la grille</a></h2>
<ul class="custom list columns padded"> <ul class="custom list columns padded">
{% for emission in emissions %} {% for emission in emissions %}
<li class="item ellipsis"> <li class="item ellipsis">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment