mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
SearchFilter with unaccent
based on https://github.com/encode/django-rest-framework/pull/7733
This commit is contained in:
parent
c0d95cb967
commit
132a4f962d
|
@ -45,6 +45,7 @@ class SearchFilter(BaseFilterBackend):
|
||||||
'=': 'iexact',
|
'=': 'iexact',
|
||||||
'@': 'search',
|
'@': 'search',
|
||||||
'$': 'iregex',
|
'$': 'iregex',
|
||||||
|
'&': 'unaccent',
|
||||||
}
|
}
|
||||||
search_title = _('Search')
|
search_title = _('Search')
|
||||||
search_description = _('A search term.')
|
search_description = _('A search term.')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user