mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26779 -- Added extra_context parameter to admin's i18n_javascript view.
This commit is contained in:
@@ -691,6 +691,10 @@ class AdminViewBasicTest(AdminViewBasicTestCase):
|
||||
response = self.client.get(reverse('admin:jsi18n'))
|
||||
self.assertContains(response, 'Choisir une heure')
|
||||
|
||||
def test_jsi18n_with_context(self):
|
||||
response = self.client.get(reverse('admin-extra-context:jsi18n'))
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def test_L10N_deactivated(self):
|
||||
"""
|
||||
Check if L10N is deactivated, the JavaScript i18n view doesn't
|
||||
|
||||
Reference in New Issue
Block a user