mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 10:34:03 +03:00
Fix lint
This commit is contained in:
parent
854e22b6bc
commit
a0aefacb1d
|
@ -52,7 +52,7 @@ class SearchFilter(BaseFilterBackend):
|
||||||
|
|
||||||
def get_search_fields(self, view, request):
|
def get_search_fields(self, view, request):
|
||||||
"""
|
"""
|
||||||
Search fields are obtained from the view / search backend, but the request is
|
Search fields are obtained from the view / search backend, but the request is
|
||||||
always passed to this method. Sub-classes can override this method to
|
always passed to this method. Sub-classes can override this method to
|
||||||
dynamically change the search fields based on request content.
|
dynamically change the search fields based on request content.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -218,7 +218,6 @@ class SearchFilterTests(TestCase):
|
||||||
{'id': 3, 'title': 'zzz', 'text': 'cde'}
|
{'id': 3, 'title': 'zzz', 'text': 'cde'}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def test_search_field_with_null_characters(self):
|
def test_search_field_with_null_characters(self):
|
||||||
view = generics.GenericAPIView()
|
view = generics.GenericAPIView()
|
||||||
request = factory.get('/?search=\0as%00d\x00f')
|
request = factory.get('/?search=\0as%00d\x00f')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user