From 132a4f962d3959ffa73784e90f698b44786563d3 Mon Sep 17 00:00:00 2001 From: Asif Saif Uddin Date: Wed, 23 Nov 2022 20:25:13 +0600 Subject: [PATCH] SearchFilter with unaccent based on https://github.com/encode/django-rest-framework/pull/7733 --- rest_framework/filters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rest_framework/filters.py b/rest_framework/filters.py index 1ffd9edc02..e7f70f60d6 100644 --- a/rest_framework/filters.py +++ b/rest_framework/filters.py @@ -45,6 +45,7 @@ class SearchFilter(BaseFilterBackend): '=': 'iexact', '@': 'search', '$': 'iregex', + '&': 'unaccent', } search_title = _('Search') search_description = _('A search term.') pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy