Commits

Luke Plant committed 5d8557f

Updated SermonFilterSet for change in API in easyfilters

  • Participants
  • Parent commits 70e6243

Comments (0)

Files changed (1)

File sermons/views.py

 from django.conf import settings
 from django.shortcuts import render
-from django_easyfilters import FilterSet, FilterOptions
+from django_easyfilters import FilterSet
 
 from sermons.models import Sermon
 
 class SermonFilterSet(FilterSet):
     fields = [
-        ('speaker', FilterOptions(order_by_count=True)),
+        ('speaker', dict(order_by_count=True)),
         'series',
         'topics',
         'bible_book',
         ]
 
+
 def index(request):
     sermons = Sermon.objects.filter(published=True)
     sermonsfilter = SermonFilterSet(sermons, request.GET)