diff -ru django/forms/forms.py django.fix/forms/forms.py
old
|
new
|
|
14 | 14 | from django.utils.html import conditional_escape |
15 | 15 | from django.utils.encoding import StrAndUnicode, smart_unicode, force_unicode |
16 | 16 | from django.utils.safestring import mark_safe |
| 17 | from django.utils.formats import localize |
17 | 18 | |
18 | 19 | |
19 | 20 | __all__ = ('BaseForm', 'Form') |
… |
… |
|
341 | 342 | hidden_widget = field.hidden_widget() |
342 | 343 | initial_value = hidden_widget.value_from_datadict( |
343 | 344 | self.data, self.files, initial_prefixed_name) |
| 345 | if field.widget.is_localized: |
| 346 | initial_value = localize(initial_value) |
344 | 347 | if field.widget._has_changed(initial_value, data_value): |
345 | 348 | self._changed_data.append(name) |
346 | 349 | return self._changed_data |