File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
django/apps/existing_database
mapswipe_workers/tests/integration Expand file tree Collapse file tree 3 files changed +5
-3
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 ,
@@ -30,7 +31,7 @@ CREATE TABLE IF NOT EXISTS groups (
3031 required_count int ,
3132 progress int ,
3233 project_type_specifics json,
33- -- total_area & time_spent_max_allowed are maintaned and used by aggregated module
34+ -- total_area & time_spent_max_allowed are maintained and used by aggregated module
3435 total_area float DEFAULT NULL ,
3536 time_spent_max_allowed float DEFAULT NULL ,
3637 PRIMARY KEY (project_id, group_id),
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 ,
@@ -30,7 +31,7 @@ CREATE TABLE IF NOT EXISTS groups (
3031 required_count int ,
3132 progress int ,
3233 project_type_specifics json,
33- -- total_area & time_spent_max_allowed are maintaned and used by aggregated module
34+ -- total_area & time_spent_max_allowed are maintained and used by aggregated module
3435 total_area float DEFAULT NULL ,
3536 time_spent_max_allowed float DEFAULT NULL ,
3637 PRIMARY KEY (project_id, group_id),
You can’t perform that action at this time.
0 commit comments