Code

Opened 17 months ago

Closed 17 months ago

Last modified 17 months 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?

Attachments (0)

Change History (4)

comment:1 Changed 17 months 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 17 months 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 17 months 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 17 months 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.