Code

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#10981 closed (fixed)

Notes about using string for relationship target model name slightly unclear

Reported by: ramiro Owned by: jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 (2)

10981-string_model_names_notes.diff (2.2 KB) - added by ramiro 5 years ago.
10981-string_model_names_notes.2.diff (2.5 KB) - added by ramiro 5 years ago.
New corrected and sllightly enhanced iteration

Download all attachments as: .zip

Change History (9)

comment:1 Changed 5 years ago by ramiro

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Changed 5 years ago by ramiro

Changed 5 years ago by ramiro

New corrected and sllightly enhanced iteration

comment:2 Changed 5 years ago by ramiro

  • milestone set to 1.1
  • Owner changed from nobody to ramiro

Moving to list of documentation tickets to be considered for 1.1

comment:3 Changed 5 years ago by jacob

  • Owner changed from ramiro to jacob
  • Status changed from new to assigned

comment:4 Changed 5 years ago by jacob

  • Triage Stage changed from Unreviewed to Accepted

comment:5 Changed 5 years ago by russellm

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

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

comment:6 Changed 5 years ago 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.

comment:7 Changed 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

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.