Commit 3b192ad0 authored by fred's avatar fred
Browse files

performance: do not query for emissions in news view

parent cfb790e3
......@@ -185,7 +185,6 @@ class News(TemplateView):
context['newsImaged'] = NewsItem.objects.all().exclude(image__isnull=True).exclude(image__exact='').order_by('-datetime')[:3]
context['news'] = NewsItem.objects.all().order_by('-datetime')[:60]
context['categories'] = NewsCategory.objects.all()
context['emissions'] = Emission.objects.filter(archived=False).order_by('?')
context['player'] = audioPlayer()
return context
Supports Markdown
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