Added IpField and little fixes in basic fields

This commit is contained in:
Antonio de la Rosa 2015-12-24 02:36:27 +01:00
parent 863a592210
commit 6bb7a1e863
3 changed files with 20 additions and 0 deletions

View file

@ -13,6 +13,7 @@ class EmailField(CharField):
if not mail_pattern.match(value):
self.error=True
value=""
self.txt_error='No valid format'
return value