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
Post a Comment