diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-03-27 16:43:27 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-03-27 16:43:27 +0000 |
| commit | ca4c6f65ea81109cf6fbdba74da7f5027eb0c4db (patch) | |
| tree | 518379a21d25de1802f68899af42e00d941f05d9 /django/forms/forms.py | |
| parent | ad5afd6ed220ed50a2b48d7ccf9786ac0e52f807 (diff) | |
Fixed #13032 - Added localize parameter to form fields to be able to selectively enable localization.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/forms/forms.py')
| -rw-r--r-- | django/forms/forms.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py index b3718efa9a..6076065b59 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -443,6 +443,8 @@ class BoundField(StrAndUnicode): name = self.html_name else: name = self.html_initial_name + if self.field.localize: + data = self.field.localize_value(data) return widget.render(name, data, attrs=attrs) def as_text(self, attrs=None, **kwargs): |
