Opened 13 years ago

Closed 13 years ago

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


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]

Change History (2)

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

Resolution: duplicate
Status: newclosed

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

comment:2 Changed 13 years ago by Adrian Holovaty

milestone: Version 0.92

Milestone Version 0.92 deleted

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