Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#1676 closed defect (duplicate)

docs/generic_views.txt needs slight update

Reported by: penguin@… Owned by: jacob
Component: Documentation Version: magic-removal
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

docs generic_views.txt uses this example:

  info_dict = {
        'model': Entry,
        'date_field': 'pub_date',
    }

Which gives an error

TypeError at /budget/debt/
archive_index() got an unexpected keyword argument 'model'

The correct syntax is demonstrated by tutorial04.txt

    info_dict = {
        'queryset': Poll.objects.all(),
    }

See [2304]

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by Malcolm Tredinnick <malcolm@…>

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

This report is duplicated in #1700 and there is a patch attached to the latter, so closing this ticket.

comment:2 Changed 7 years ago by adrian

  • milestone Version 0.92 deleted

Milestone Version 0.92 deleted

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.