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 waltersdmh)

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 (1)

comment:1 by waltersdmh, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top