mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #21181 -- Corrected DatabaseFeatures.test_collations for Swedish collation.
Previously, backends used different keys "swedish-ci" or "swedish_ci".
This commit is contained in:
committed by
Mariusz Felisiak
parent
f3901b5899
commit
278b6187d2
@@ -31,7 +31,7 @@ class CollateTests(TestCase):
|
||||
self.assertSequenceEqual(qs, [self.author2, self.author1])
|
||||
|
||||
def test_language_collation_order_by(self):
|
||||
collation = connection.features.test_collations.get('swedish-ci')
|
||||
collation = connection.features.test_collations.get('swedish_ci')
|
||||
if not collation:
|
||||
self.skipTest('This backend does not support language collations.')
|
||||
author3 = Author.objects.create(alias='O', name='Jones')
|
||||
|
||||
Reference in New Issue
Block a user