Opened 18 years ago

Closed 18 years ago

Last modified 18 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

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]

Change History (2)

comment:1 by Malcolm Tredinnick <malcolm@…>, 18 years ago

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 by Adrian Holovaty, 18 years ago

milestone: Version 0.92

Milestone Version 0.92 deleted

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