Skip to content

Commit

Permalink
Use better names for filter variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Oct 28, 2015
1 parent 378d6a1 commit 32bd1a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rest_framework/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def filter_queryset(self, request, queryset, view):
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({
Expand Down

0 comments on commit 32bd1a2

Please sign in to comment.