mirror of
https://github.com/django/django.git
synced 2025-08-07 04:18:19 +00:00
Fixed #31777 -- Added support for database collations to Char/TextFields.
Thanks Simon Charette and Mariusz Felisiak for reviews.
This commit is contained in:
parent
ba6b32e5ef
commit
e387f191f7
25 changed files with 544 additions and 30 deletions
|
@ -59,6 +59,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
has_json_operators = True
|
||||
json_key_contains_list_matching_requires_list = True
|
||||
test_collations = {
|
||||
'non_default': 'sv-x-icu',
|
||||
'swedish_ci': 'sv-x-icu',
|
||||
}
|
||||
|
||||
|
@ -92,3 +93,4 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
supports_table_partitions = property(operator.attrgetter('is_postgresql_10'))
|
||||
supports_covering_indexes = property(operator.attrgetter('is_postgresql_11'))
|
||||
supports_covering_gist_indexes = property(operator.attrgetter('is_postgresql_12'))
|
||||
supports_non_deterministic_collations = property(operator.attrgetter('is_postgresql_12'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue