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
Please close this issue, I accidentally submitted it without adding any details
New documentation
Correction or update
Hi,
I am following your guide of Django and i think i spotted a mistake in de uml figure in chapter "Designing the LocalLibrary models". The relation between book to author should be a 1* and not a 1.
As also described in the box within book itself.
The design is that an author can write many books, but a book can only have one author (yes, a simplification).
This is what the UML diagram says - specifically the number next to the line connecting a box shows how many of that box the other end of the line has. I've always found this confusing, which is why it is spelled out in the text too for the Genre example
For example, the connecting line between the boxes shows that Book and a Genre are related. The numbers close to the Genre model show that a book must have one or more Genres (as many as you like), while the numbers on the other end of the line next to the Book model show that a Genre can have zero or many associated books.
You can check this using references on the Internet - for example this one
Request type
Hi,
I am following your guide of Django and i think i spotted a mistake in de uml figure in chapter "Designing the LocalLibrary models". The relation between book to author should be a 1* and not a 1.
As also described in the box within book itself.
Kind regards,
Ricky
Url:
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Models
Details
The text was updated successfully, but these errors were encountered: