You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see in UML that relationship between Book and Author is ManyToMany but whereas in code catalog/models.py (quoting the code below) it was mentioned that "book can only have one author"
author = models.ForeignKey('Author', on_delete=models.SET_NULL, null=True)
# Foreign Key used because book can only have one author, but authors can have multiple books
# Author as a string rather than object because it hasn't been declared yet in file.
Why there is discrepancy ???
The text was updated successfully, but these errors were encountered:
Hey,
I see in UML that relationship between
Book
andAuthor
isManyToMany
but whereas in codecatalog/models.py
(quoting the code below) it was mentioned that "book can only have one author"Why there is discrepancy ???
The text was updated successfully, but these errors were encountered: