1
0
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:
Shabda Raaj
2016-06-19 16:21:58 +05:30
committed by Tim Graham
parent 2224a56631
commit b0acb1e73e
3 changed files with 10 additions and 1 deletions

View File

@@ -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