Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Fix#23 "stringField regex supported".
Browse files Browse the repository at this point in the history
  • Loading branch information
lig committed Feb 27, 2013
1 parent b836976 commit 03c940f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongoforms/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def generate(self, field_name, field):
def generate_stringfield(self, field_name, field, label):

if field.regex:
return forms.CharField(
return forms.RegexField(
label=label,
regex=field.regex,
required=field.required,
Expand Down

0 comments on commit 03c940f

Please sign in to comment.