We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d48c8 commit f597e9eCopy full SHA for f597e9e
django/apps/existing_database/filters.py
@@ -38,7 +38,7 @@ class UserGroupFilter:
38
def filter_search(self, queryset):
39
if self.search:
40
queryset = queryset.filter(
41
- name__icontains=self.search,
+ name__unaccent__icontains=self.search,
42
)
43
return queryset
44
postgres/initdb.sql
@@ -1,5 +1,6 @@
1
-- noinspection SqlNoDataSourceInspectionForFile
2
CREATE EXTENSION IF NOT EXISTS postgis;
3
+CREATE EXTENSION IF NOT EXISTS unaccent;
4
5
CREATE TABLE IF NOT EXISTS projects (
6
created timestamp,
0 commit comments