Opened 5 years ago
Closed 5 years ago
#30930 closed Cleanup/optimization (invalid)
Many to Many Doc.
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
Change History (2)
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Summary: | Many to Many Doc → Many to Many Doc. |
Type: | Uncategorized → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
Examples work for me.