Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#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:
Needs tests: Patch needs improvement:
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?

Change History (4)

comment:1 Changed 2 years ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 43efefae692729925c0f75c55e93bd1f33f42bfd:

Fixed #19756 - Corrected a ManyToMany example and added some links and markup.

comment:2 Changed 2 years ago by Tim Graham <timograham@…>

In a81363d85accfe09fe6885b255355dfb108e25af:

[1.5.x] Fixed #19756 - Corrected a ManyToMany example and added some links and markup.

Backport of 43efefae69 from master

comment:3 Changed 2 years ago by Tim Graham <timograham@…>

In 056b2b5f65e6b12c609dbd064cbe1e44a8730bf7:

[1.4.x] Fixed #19756 - Corrected a ManyToMany example and added some links and markup.

Backport of 43efefae69 from master

comment:4 Changed 2 years ago by Tim Graham <timograham@…>

In a81363d85accfe09fe6885b255355dfb108e25af:

[1.5.x] Fixed #19756 - Corrected a ManyToMany example and added some links and markup.

Backport of 43efefae69 from master

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