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)
Change History (3)
by , 15 years ago
Attachment: | fkdocs.diff added |
---|
comment:1 by , 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Documentation patch