mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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:
parent
f3901b5899
commit
278b6187d2
4 changed files with 4 additions and 4 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue