mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 19:40:13 +03:00
fix typo
This commit is contained in:
parent
4edb973418
commit
4898e8d8b4
|
@ -28,7 +28,7 @@ class SimpleDjangoFilterBackend(BaseFilterBackend):
|
|||
Really simple class that allows straightforward Django ORM filtering.
|
||||
"""
|
||||
def filter_queryset(self, request, queryset, view):
|
||||
filter_fields = getattr('filter_fields', view, None)
|
||||
filter_fields = getattr(view, 'filter_fields', None)
|
||||
if filter_fields is None:
|
||||
filter_fields = request.QUERY_PARAMS.keys()
|
||||
# reduce relations to entry point only
|
||||
|
|
Loading…
Reference in New Issue
Block a user