Answer the question
In order to leave comments, you need to log in
How to make default empty in models ForeignKey?
How to make default empty in models ForeignKey?
Answer the question
In order to leave comments, you need to log in
You can specify that a field may not have a value:
user = models.ForeignKey(User, null=True, blank=True)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question