File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
django/apps/existing_database
mapswipe_workers/tests/integration Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class UserGroupFilter:
3838 def filter_search (self , queryset ):
3939 if self .search :
4040 queryset = queryset .filter (
41- name__icontains = self .search ,
41+ name__unaccent__icontains = self .search ,
4242 )
4343 return queryset
4444
Original file line number Diff line number Diff line change 11-- noinspection SqlNoDataSourceInspectionForFile
22CREATE EXTENSION IF NOT EXISTS postgis;
3+ CREATE EXTENSION IF NOT EXISTS unaccent;
34
45CREATE TABLE IF NOT EXISTS projects (
56 created timestamp ,
Original file line number Diff line number Diff line change 11-- noinspection SqlNoDataSourceInspectionForFile
22CREATE EXTENSION IF NOT EXISTS postgis;
3+ CREATE EXTENSION IF NOT EXISTS unaccent;
34
45CREATE TABLE IF NOT EXISTS projects (
56 created timestamp ,
You can’t perform that action at this time.
0 commit comments