From 2e2689c7c0436f21d25e40f90f9d386311c776f9 Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Wed, 26 Oct 2011 05:33:17 +0000 Subject: [PATCH] Fixed #15938 -- Prevented the `max_length` number in the admin `prepopulated_fields` javascript to be localized when `USE_THOUSAND_SEPARATOR` is turned on. Thanks to Lev Maximov, Mathieu Agopian and feel. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17033 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- .../admin/templates/admin/prepopulated_fields_js.html | 3 ++- tests/regressiontests/admin_views/admin.py | 8 +++++++- tests/regressiontests/admin_views/models.py | 10 ++++++++++ tests/regressiontests/admin_views/tests.py | 10 ++++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/django/contrib/admin/templates/admin/prepopulated_fields_js.html b/django/contrib/admin/templates/admin/prepopulated_fields_js.html index 43ef5ba0717..7300bea3d9a 100644 --- a/django/contrib/admin/templates/admin/prepopulated_fields_js.html +++ b/django/contrib/admin/templates/admin/prepopulated_fields_js.html @@ -1,3 +1,4 @@ +{% load l10n %}