summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/features.py
diff options
context:
space:
mode:
authorTom Carrick <tom@carrick.eu>2020-08-08 13:37:06 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-08-11 22:21:08 +0200
commit63300f7e686c2c452763cb512df9abf7734fd588 (patch)
tree79526757ff463d5706ee879f06b3dd46780f6c19 /django/db/backends/postgresql/features.py
parent60626162f76f26d32a38d18151700cb041201fb3 (diff)
downloaddjango-63300f7e686c2c452763cb512df9abf7734fd588.tar.gz
Fixed #21181 -- Added Collate database function.
Thanks Simon Charette for reviews.
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r--django/db/backends/postgresql/features.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index df16691444..67ccd14690 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -58,6 +58,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_deferrable_unique_constraints = True
has_json_operators = True
json_key_contains_list_matching_requires_list = True
+ test_collations = {
+ 'swedish-ci': 'sv-x-icu',
+ }
@cached_property
def introspected_field_types(self):