Ticket #10167: fields.diff

File fields.diff, 579 bytes (added by dmach, 16 years ago)
  • django/forms/fields.py

     
    397397        'Enter a valid value' is too generic for you.
    398398        """
    399399        # error_message is just kept for backwards compatibility:
    400         if error_message:
     400        if error_message is not None:
    401401            error_messages = kwargs.get('error_messages') or {}
    402402            error_messages['invalid'] = error_message
    403403            kwargs['error_messages'] = error_messages
Back to Top