This commit is contained in:
Adam Dobrawy 2023-02-11 02:39:09 +01:00
parent 854e22b6bc
commit a0aefacb1d
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class SearchFilter(BaseFilterBackend):
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
dynamically change the search fields based on request content.
"""

View File

@ -218,7 +218,6 @@ class SearchFilterTests(TestCase):
{'id': 3, 'title': 'zzz', 'text': 'cde'}
]
def test_search_field_with_null_characters(self):
view = generics.GenericAPIView()
request = factory.get('/?search=\0as%00d\x00f')