Opened 10 years ago

Closed 10 years ago

Last modified 10 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:


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 10 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 10 years ago by adrian

  • milestone Version 0.92 deleted

Milestone Version 0.92 deleted

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