Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 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)

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by adrianob@…

Oh c'mon Trac :P

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

comment:2 Changed 8 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@…

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.