Cannot Post Entry Specifying Specific Id If The Id Is Specified As Foreignkey In Django
I have two models, Book and ReadBy as specified in models.py: class Book(models.Model): created = models.DateTimeField(auto_now_add=True) owner = models.ForeignKey(MyUser)
Solution 1:
classReadBy(models.Model):
... snip ...
book = models.ForeignKey(Book, null=True, blank=True)
Post a Comment for "Cannot Post Entry Specifying Specific Id If The Id Is Specified As Foreignkey In Django"