Opened 15 years ago

Closed 15 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: no UI/UX: no

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 Daniel Roseman 15 years ago.
Documentation patch

Download all attachments as: .zip

Change History (3)

by Daniel Roseman, 15 years ago

Attachment: fkdocs.diff added

Documentation patch

comment:1 by James Bennett, 15 years ago

Patch needs improvement: set

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

comment:2 by Alex Gaynor, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in r11591, backported in r11592.

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