python - How to temporarily disable foreign key constraint in django -


i have update record have foreign key constraint. have assign 0 column defined foreign key while updating django don't let me update record.

foreignkey many-to-one relationship. requires positional argument: class model related.

it must relation (class) or null (if null allowed). cannot set 0 (integer) foreignkey columnn.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -