mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Use better names for filter variable
This commit is contained in:
parent
378d6a1a19
commit
32bd1a2f0b
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user