Django

Code

Ticket #10981 (closed: fixed)

Opened 11 months ago

Last modified 9 months ago

Notes about using string for relationship target model name slightly unclear

Reported by: ramiro Assigned to: jacob
Milestone: 1.1 Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

The section that describes usage of string of ForeingKeys (and that is linked from the ManyToManyField and OneToOneField sections when describing similar features) isn't completely clear about if the 'other_app.model_name' notation is supported or not. Attached patch tries to solve this and adds a description of the supported scenario with an example, also marking it with 'versionchanged:: 1.0'.

Found while trying to understand #10405, see django-dev thread: http://groups.google.com/group/django-developers/browse_frm/thread/3c38afb3355ecda6/2e533858fd1a64c6?hl=en&tvc=1#2e533858fd1a64c6

Attachments

10981-string_model_names_notes.diff (2.2 kB) - added by ramiro on 05/02/09 15:30:40.
10981-string_model_names_notes.2.diff (2.5 kB) - added by ramiro on 05/03/09 11:02:19.
New corrected and sllightly enhanced iteration

Change History

05/02/09 15:30:19 changed by ramiro

  • needs_better_patch changed.
  • has_patch set to 1.
  • needs_tests changed.
  • needs_docs changed.

05/02/09 15:30:40 changed by ramiro

  • attachment 10981-string_model_names_notes.diff added.

05/03/09 11:02:19 changed by ramiro

  • attachment 10981-string_model_names_notes.2.diff added.

New corrected and sllightly enhanced iteration

05/09/09 14:05:37 changed by ramiro

  • owner changed from nobody to ramiro.
  • milestone set to 1.1.

Moving to list of documentation tickets to be considered for 1.1

05/11/09 01:56:04 changed by jacob

  • owner changed from ramiro to jacob.
  • status changed from new to assigned.

05/11/09 05:14:08 changed by jacob

  • stage changed from Unreviewed to Accepted.

06/10/09 07:45:30 changed by russellm

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

(In [10971]) Fixed #10981 -- Clarified documentation regarding lazy cross-application relationships. Thanks to Ramiro for the suggestion.

06/10/09 07:51:36 changed by russellm

(In [10974]) [1.0.X] Fixed #10981 -- Clarified documentation regarding lazy cross-application relationships. Thanks to Ramiro for the suggestion.

Merge of r10971 from trunk.


Add/Change #10981 (Notes about using string for relationship target model name slightly unclear)




Change Properties
Action