Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1700 closed defect (fixed)

[magic-removal] [patch] docs/generic_views.txt document update

Reported by: asmodai@… Owned by: Jacob
Component: Documentation Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In this document you see:

    from django.conf.urls.defaults import *
    from django_website.apps.blog.models import Entry

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

to be used with date_based generic views. However, any attempt to use such a 'model' will yield:

archive_index() got an unexpected keyword argument 'model'

I think it should be changed to reflect http://code.djangoproject.com/wiki/RemovingTheMagic#Changedtheparametersyoupasstogenericviews

Attachments (1)

generic_views.txt.diff (1.9 KB ) - added by Malcolm Tredinnick <malcolm@…> 19 years ago.
Bring generic_views.txt up to date with amgic-removal changes

Download all attachments as: .zip

Change History (4)

by Malcolm Tredinnick <malcolm@…>, 19 years ago

Attachment: generic_views.txt.diff added

Bring generic_views.txt up to date with amgic-removal changes

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

Summary: MR: docs/generic_views.txt documents wrong example[magic-removal] [patch] docs/generic_views.txt document update

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [2778]) magic-removal: Fixed #1700 -- Updated docs/generic_views.txt to reflect magic-removal. Thanks, Malcolm and asmodai

comment:3 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