Code

Opened 5 years ago

Closed 5 years ago

#11931 closed (fixed)

ForeignKey documentation mentions non-existent method

Reported by: danielr Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: UI/UX:

Description

The documentation for ForeignKey fields (http://docs.djangoproject.com/en/dev/ref/models/fields/#arguments) mentions Q objects as having a get_sql() method. They don't have such a method - possibly they did before queryset-refactor, but not now. Patch attached removes this, and links the reference to Q objects to the description on the Making queries page (because there is no reference page for Q).

Attachments (1)

fkdocs.diff (1.5 KB) - added by danielr 5 years ago.
Documentation patch

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by danielr

Documentation patch

comment:1 Changed 5 years ago by ubernostrum

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

The actual criterion is anything that's a Q object or has an add_to_query() method.

comment:2 Changed 5 years ago by Alex

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

Fixed in r11591, backported in r11592.

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.