mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
fix
This commit is contained in:
parent
51d591a54e
commit
254a4590d9
|
@ -32,7 +32,7 @@ class SimpleDjangoFilterBackend(BaseFilterBackend):
|
|||
if filter_fields is None:
|
||||
filter_fields = request.QUERY_PARAMS
|
||||
# reduce relations to entry point only
|
||||
fields = [field.split('__')[0] for field in filter_fields.keys()]
|
||||
fields = [field.split('__')[0] for field in filter_fields]
|
||||
params = {}
|
||||
for k, v in request.QUERY_PARAMS.iteritems():
|
||||
# if entry point matches, collect the original key
|
||||
|
|
Loading…
Reference in New Issue
Block a user