1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

[4.0.x] Fixed #33070 -- Fixed loading translations with language subtags in admin's Select2 widget.

Backport of 8eb5693091 from main
This commit is contained in:
Cleiton Lima
2021-09-20 15:56:54 -03:00
committed by Mariusz Felisiak
parent 3c751f008f
commit a077f10df4
2 changed files with 5 additions and 3 deletions

View File

@@ -72,7 +72,8 @@ class AutocompleteMixinTests(TestCase):
'data-app-label': 'admin_widgets',
'data-field-name': 'band',
'data-model-name': 'album',
'data-placeholder': ''
'data-placeholder': '',
'lang': 'en',
})
def test_build_attrs_no_custom_class(self):