Opened 9 years ago

Closed 9 years ago

#11931 closed (fixed)

ForeignKey documentation mentions non-existent method

Reported by: Daniel Roseman 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:


The documentation for ForeignKey fields ( 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 Daniel Roseman 9 years ago.
Documentation patch

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Daniel Roseman

Attachment: fkdocs.diff added

Documentation patch

comment:1 Changed 9 years ago by James Bennett

Patch needs improvement: set

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

comment:2 Changed 9 years ago by Alex Gaynor

Resolution: fixed
Status: newclosed

Fixed in r11591, backported in r11592.

Note: See TracTickets for help on using tickets.
Back to Top