summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/features.py
diff options
context:
space:
mode:
authorTom Carrick <tom@carrick.eu>2020-09-18 12:12:27 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-09-18 12:15:46 +0200
commit278b6187d2a6711afb0b35dc5c3c09fe5be9adb3 (patch)
treed77b0df99d7db0f43c05da2b992f7038ad4808ab /django/db/backends/postgresql/features.py
parentf3901b5899d746dc5b754115d94ce9a045b4db0a (diff)
downloaddjango-278b6187d2a6711afb0b35dc5c3c09fe5be9adb3.tar.gz
Refs #21181 -- Corrected DatabaseFeatures.test_collations for Swedish collation.
Previously, backends used different keys "swedish-ci" or "swedish_ci".
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r--django/db/backends/postgresql/features.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index 67ccd14690..9080e75a36 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -59,7 +59,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
has_json_operators = True
json_key_contains_list_matching_requires_list = True
test_collations = {
- 'swedish-ci': 'sv-x-icu',
+ 'swedish_ci': 'sv-x-icu',
}
@cached_property