Opened 5 years ago
Last modified 5 years ago
#30930 closed Cleanup/optimization
Many to Many Doc — at Version 1
Reported by: | waltersdmh | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Hi,
https://docs.djangoproject.com/en/3.0/topics/db/examples/many_to_many/
At line:
Publication objects have access to their related Article objects
Why does the docs refer to p2.articles as p2.article_set
"_set" does not work in Django.
p2.article_set.all()
should be
p2.article.all()
Thanks
Note:
See TracTickets
for help on using tickets.