[Answered ]-How to temporarily disable foreign key constraint in django

2👍

ForeignKey is a many-to-one relationship. Requires a positional argument: the class to which the model is related.

It must be Relation (class) or Null (if null allowed). You cannot set 0 (integer) to ForeignKey columnn.

Leave a comment