Commits

Luke Plant  committed d39000d

Small code tweak for clarity

  • Participants
  • Parent commits c0da5e3

Comments (0)

Files changed (1)

File sermons/views.py

 def index(request):
     sermons = Sermon.objects.filter(published=True)
     sermonsfilter = SermonFilterSet(sermons, request.GET)
-    return render(request, "sermons/index.html", {'sermonsfilter': sermonsfilter,
-                                                  'sermons': sermonsfilter.qs})
+    return render(request, "sermons/index.html", {'sermons': sermonsfilter.qs,
+                                                  'sermonsfilter': sermonsfilter})