Ticket #13546: localized_form_fields.diff

File localized_form_fields.diff, 946 bytes (added by Henrik Karlsen, 14 years ago)
  • django/forms/fields.py

     
    1616
    1717from django.core.exceptions import ValidationError
    1818from django.core import validators
     19from django.conf import settings
    1920import django.utils.copycompat as copy
    2021from django.utils import formats
    2122from django.utils.translation import ugettext_lazy as _
     
    7172
    7273    def __init__(self, required=True, widget=None, label=None, initial=None,
    7374                 help_text=None, error_messages=None, show_hidden_initial=False,
    74                  validators=[], localize=False):
     75                 validators=[], localize=settings.USE_L10N):
    7576        # required -- Boolean that specifies whether the field is required.
    7677        #             True by default.
    7778        # widget -- A Widget class, or instance of a Widget class, that should
Back to Top