Code

Opened 7 years ago

Closed 7 years ago

#5068 closed (fixed)

Problem on db-api page - partial conversion of author ForeignKey to ManyToMany

Reported by: Collin Grady <cgrady@…> Owned by: jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

It appears that the Entry/Author example started to be changed into a ManyToMany instead of a ForeignKey, but not all of the examples were updated - in one of them, it is still doing entry.author = joe instead of entry.authors.add(joe).

Attachments (2)

5068.patch (833 bytes) - added by Collin Grady <cgrady@…> 7 years ago.
5068.2.patch (1.2 KB) - added by SmileyChris 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Collin Grady <cgrady@…>

comment:1 Changed 7 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement set
  • Triage Stage changed from Unreviewed to Accepted

I think it's still important to show an example of saving a FK there, so the FK example should be changed to show .blog being modified, then the M2M example after that.

Changed 7 years ago by SmileyChris

comment:2 Changed 7 years ago by SmileyChris

  • Patch needs improvement unset
  • Triage Stage changed from Accepted to Ready for checkin

comment:3 Changed 7 years ago by adrian

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

(In [6010]) Fixed #5068 -- Fixed error in docs/db-api.txt. Thanks, Collin Grady and SmileyChris

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.