EmailField should honor StringField validation as well
This commit is contained in:
parent
7a1b110f62
commit
376d1c97ab
2 changed files with 13 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ class EmailField(StringField):
|
|||
def validate(self, value):
|
||||
if not EmailField.EMAIL_REGEX.match(value):
|
||||
self.error('Invalid Mail-address: %s' % value)
|
||||
super(EmailField, self).validate(value)
|
||||
|
||||
|
||||
class IntField(BaseField):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue