Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1285 closed defect (fixed)

Documentation error in the DB API about Relationships

Reported by: adrianob@… Owned by: Jacob
Component: Documentation Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

http://www.djangoproject.com/documentation/db_api/#relationships-joins

In the beggining of the text, there is a part that say:
"For example, if p is a Poll instance, p.get_choice_list() will return a list of all associated choices. Astute readers will note that this is the same as choices.get_list(poll_idexact=p.id), except clearer."

The correct is:
choices.get_list(pollidexact=p.id)

Change History (2)

comment:1 by adrianob@…, 18 years ago

Oh c'mon Trac :P

p.get_choice_list() == choices.get_list(poll__id__exact=p.id)

comment:2 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [2228]) Fixed #1285 -- Fixed bug in docs/db-api.txt. Thanks, adrianob@…

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