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

mismatch of UML design and actual code #34

Closed
lokesh1729 opened this issue Dec 5, 2018 · 1 comment
Closed

mismatch of UML design and actual code #34

lokesh1729 opened this issue Dec 5, 2018 · 1 comment

Comments

@lokesh1729
Copy link

Hey,

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 ???

@hamishwillee
Copy link
Collaborator

Because the design changed during implementation without corresponding update to the docs. Fix on mdn and in example now. Thanks for spotting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants