Fixes on fieldstest
This commit is contained in:
parent
1cd2fa0c68
commit
d5ff46e6aa
2 changed files with 33 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue