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

comment:1 by waltersdmh, 5 years ago

Description: modified (diff)

comment:2 by Mariusz Felisiak, 5 years ago

Resolution: invalid
Status: newclosed
Summary: Many to Many DocMany to Many Doc.
Type: UncategorizedCleanup/optimization

Examples work for me.

Note: See TracTickets for help on using tickets.
Back to Top