Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django/apps/existing_database/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class UserGroupFilter:
def filter_search(self, queryset):
if self.search:
queryset = queryset.filter(
name__icontains=self.search,
name__unaccent__icontains=self.search,
)
return queryset

Expand Down
3 changes: 2 additions & 1 deletion mapswipe_workers/tests/integration/set_up_db.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- noinspection SqlNoDataSourceInspectionForFile
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS unaccent;

CREATE TABLE IF NOT EXISTS projects (
created timestamp,
Expand Down Expand Up @@ -30,7 +31,7 @@ CREATE TABLE IF NOT EXISTS groups (
required_count int,
progress int,
project_type_specifics json,
-- total_area & time_spent_max_allowed are maintaned and used by aggregated module
-- total_area & time_spent_max_allowed are maintained and used by aggregated module
total_area float DEFAULT NULL,
time_spent_max_allowed float DEFAULT NULL,
PRIMARY KEY (project_id, group_id),
Expand Down
3 changes: 2 additions & 1 deletion postgres/initdb.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- noinspection SqlNoDataSourceInspectionForFile
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS unaccent;

CREATE TABLE IF NOT EXISTS projects (
created timestamp,
Expand Down Expand Up @@ -30,7 +31,7 @@ CREATE TABLE IF NOT EXISTS groups (
required_count int,
progress int,
project_type_specifics json,
-- total_area & time_spent_max_allowed are maintaned and used by aggregated module
-- total_area & time_spent_max_allowed are maintained and used by aggregated module
total_area float DEFAULT NULL,
time_spent_max_allowed float DEFAULT NULL,
PRIMARY KEY (project_id, group_id),
Expand Down