mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32873 -- Deprecated settings.USE_L10N.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
committed by
Mariusz Felisiak
parent
04e023e383
commit
676bd084f2
@@ -338,7 +338,7 @@ class AdminSplitDateTimeWidgetTest(SimpleTestCase):
|
||||
def test_localization(self):
|
||||
w = widgets.AdminSplitDateTime()
|
||||
|
||||
with self.settings(USE_L10N=True), translation.override('de-at'):
|
||||
with translation.override('de-at'):
|
||||
w.is_localized = True
|
||||
self.assertHTMLEqual(
|
||||
w.render('test', datetime(2007, 12, 1, 9, 30)),
|
||||
@@ -939,7 +939,7 @@ class DateTimePickerSeleniumTests(AdminWidgetSeleniumTestCase):
|
||||
expected_caption = '{:s} {:d}'.format(may_translation.upper(), 1984)
|
||||
|
||||
# Test with every locale
|
||||
with override_settings(LANGUAGE_CODE=language_code, USE_L10N=True):
|
||||
with override_settings(LANGUAGE_CODE=language_code):
|
||||
|
||||
# Open a page that has a date picker widget
|
||||
url = reverse('admin:admin_widgets_member_change', args=(member.pk,))
|
||||
|
||||
Reference in New Issue
Block a user