6
Instead of default="None"
, specify null=True
to allow null for foreign key:
category = models.ForeignKey(Category, null=True)
Source:stackexchange.com
6
Instead of default="None"
, specify null=True
to allow null for foreign key:
category = models.ForeignKey(Category, null=True)