#19756 closed Uncategorized (fixed)
.add or .create on ManyToManyField doc page
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
https://docs.djangoproject.com/en/1.4/topics/db/examples/many_to_many/
"Add a Publication directly via publications.add by using keyword arguments:
new_publication = a2.publications.create(title='Highlights for Children')"
Which is it, .add or .create?
Note:
See TracTickets
for help on using tickets.
In 43efefae692729925c0f75c55e93bd1f33f42bfd: