Ticket #13546: localized_form_fields.diff
File localized_form_fields.diff, 946 bytes (added by , 14 years ago) |
---|
-
django/forms/fields.py
16 16 17 17 from django.core.exceptions import ValidationError 18 18 from django.core import validators 19 from django.conf import settings 19 20 import django.utils.copycompat as copy 20 21 from django.utils import formats 21 22 from django.utils.translation import ugettext_lazy as _ … … 71 72 72 73 def __init__(self, required=True, widget=None, label=None, initial=None, 73 74 help_text=None, error_messages=None, show_hidden_initial=False, 74 validators=[], localize= False):75 validators=[], localize=settings.USE_L10N): 75 76 # required -- Boolean that specifies whether the field is required. 76 77 # True by default. 77 78 # widget -- A Widget class, or instance of a Widget class, that should