Skip to content

Commit

Permalink
ADDED FloatField
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmolina committed Jul 31, 2013
1 parent 0c75219 commit cff3023
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_jquery_validate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def get_error_tags(arg, message_id=None, param=""):
field_dict['pattern'] = "##/" + \
self.fields[key].regex.pattern + \
"/i##"
elif isinstance(self.fields[key], forms.fields.FloatField):
field_dict['number'] = True

if isinstance(self.fields[key], forms.fields.MultiValueField):
for key2 in xrange(0, len(self.fields[key].fields)):
Expand Down

0 comments on commit cff3023

Please sign in to comment.