Fixes on fieldstest

This commit is contained in:
Antonio de la Rosa 2015-12-09 01:48:55 +01:00
parent 1cd2fa0c68
commit d5ff46e6aa
2 changed files with 33 additions and 1 deletions

View file

@ -889,7 +889,13 @@ class PrimaryKeyField(PhangoField):
if value=='':
value='0'
value=str(int(value))
try:
value=str(int(value))
except:
value=0
if value==0:
self.txt_error="The value is zero"