#30930: Many to Many Doc
-------------------------------+--------------------------------------
Reporter: waltersdmh | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by waltersdmh:
Old description:
> Hi,
>
> 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
New description:
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
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30930#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.333494d97de045db8a81abcfaf1dffb9%40djangoproject.com.