Use better names for filter variable

This commit is contained in:
Eric Holscher 2015-10-28 14:36:24 -07:00
parent 378d6a1a19
commit 32bd1a2f0b

View File

@ -117,9 +117,9 @@ class DjangoFilterBackend(BaseFilterBackend):
return queryset
def to_html(self, request, queryset, view):
cls = self.get_filter_class(view, queryset)
if cls:
filter_instance = cls(request.query_params, queryset=queryset)
filter_class = self.get_filter_class(view, queryset)
if filter_class:
filter_instance = filter_class(request.query_params, queryset=queryset)
else:
filter_instance = None
context = Context({