Opened 9 years ago

Closed 9 years ago

Last modified 9 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: UI/UX:

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 Changed 9 years ago by adrianob@…

Oh c'mon Trac :P

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

comment:2 Changed 9 years ago by adrian

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

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

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