Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uml figure #1708

Closed
1 of 3 tasks
R-Emerenciana opened this issue Apr 23, 2020 · 2 comments
Closed
1 of 3 tasks

Uml figure #1708

R-Emerenciana opened this issue Apr 23, 2020 · 2 comments
Assignees
Labels
Content:Learn Learning area docs

Comments

@R-Emerenciana
Copy link

R-Emerenciana commented Apr 23, 2020

Request type

  • 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.

Kind regards,

Ricky
local_library_model_uml

Url:
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Models

Details

@chrisdavidmills
Copy link
Contributor

Hi @R-Emerenciana !

So, you mean that the relationship between Book and Author should be

1..* --------- 1..*

not

1..* --------- 1

Given that many authors can work on a single book?

@chrisdavidmills chrisdavidmills transferred this issue from mdn/sprints Jan 25, 2021
@hamishwillee hamishwillee added the Content:Learn:Django Learning area Django docs label Feb 3, 2021
@hamishwillee
Copy link
Collaborator

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

I am therefore closing this as invalid.

@ddbeck ddbeck added Content:Learn Learning area docs and removed Content:Learn:Django Learning area Django docs labels Mar 31, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:Learn Learning area docs
Projects
None yet
Development

No branches or pull requests

4 participants