Commit a25e2dd7 authored by fred's avatar fred

remove roll from news page

parent 9487b927
......@@ -437,8 +437,7 @@ class News(TemplateView):
def get_context_data(self, **kwargs):
context = super(News, self).get_context_data(**kwargs)
context['sectionName'] = "News"
context['focus'] = NewsItem.objects.select_related('category').filter(focus=True).exclude(image__isnull=True).exclude(image__exact='').order_by('-date')[:9]
context['news'] = NewsItem.objects.all().exclude(focus=True).exclude(image__isnull=True).exclude(image__exact='').order_by('-date')[3:14]
context['news'] = NewsItem.objects.all().exclude(image__isnull=True).exclude(image__exact='').order_by('-date')[:14]
return context
news = News.as_view()
......
......@@ -3,9 +3,6 @@
{% block title %}News{% endblock %}
{% block nav %}
{% news_nav %}
{% with focus as news %}
{% newsroll %}
{% endwith %}
{% endblock %}
{% block main %}
<div class="news">
......
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