Ticket #10167: fields.diff
File fields.diff, 579 bytes (added by , 16 years ago) |
---|
-
django/forms/fields.py
397 397 'Enter a valid value' is too generic for you. 398 398 """ 399 399 # error_message is just kept for backwards compatibility: 400 if error_message :400 if error_message is not None: 401 401 error_messages = kwargs.get('error_messages') or {} 402 402 error_messages['invalid'] = error_message 403 403 kwargs['error_messages'] = error_messages