Skip to content

Commit

Permalink
ADD error message for time
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmolina committed Nov 27, 2013
1 parent e858a54 commit 99e658f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_jquery_validate/templatetags/jquery_validate.py
Expand Up @@ -135,6 +135,8 @@ def map_messages(field, validate_dict):
custom_or_default(field, validate_dict['messages'][field.name], 'invalid', 'url', 'Invalid url')
elif 'date' in validate_dict['rules'][field.name]:
custom_or_default(field, validate_dict['messages'][field.name], 'invalid', 'date', 'Invalid date')
elif 'time' in validate_dict['rules'][field.name]:
custom_or_default(field, validate_dict['messages'][field.name], 'invalid', 'time', 'Invalid time')
elif 'pattern' in validate_dict['rules'][field.name]:
custom_or_default(field, validate_dict['messages'][field.name], 'regex_pattern', 'pattern', '')

Expand Down

0 comments on commit 99e658f

Please sign in to comment.