Fixes in sortm keys
This commit is contained in:
parent
dd4cf06b3b
commit
c2587c5166
3 changed files with 335 additions and 2 deletions
|
|
@ -257,7 +257,7 @@ class ForeignKeyField(IntegerField):
|
|||
value=super().check(value)
|
||||
|
||||
if value=='0' or value==0:
|
||||
value='NULL'
|
||||
value=None
|
||||
|
||||
return value
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue