Django

Code

Ticket #5068 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

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

Reported by: Collin Grady <cgrady@the-magi.us> Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

5068.patch (0.8 kB) - added by Collin Grady <cgrady@the-magi.us> on 08/02/07 23:53:59.
5068.2.patch (1.2 kB) - added by SmileyChris on 08/09/07 22:32:22.

Change History

08/02/07 23:53:59 changed by Collin Grady <cgrady@the-magi.us>

  • attachment 5068.patch added.

08/09/07 18:04:00 changed by SmileyChris

  • needs_better_patch set to 1.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

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.

08/09/07 22:32:22 changed by SmileyChris

  • attachment 5068.2.patch added.

08/09/07 22:32:52 changed by SmileyChris

  • needs_better_patch deleted.
  • stage changed from Accepted to Ready for checkin.

08/25/07 13:58:36 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #5068 (Problem on db-api page - partial conversion of author ForeignKey to ManyToMany)




Change Properties
Action