Opened 9 years ago

Closed 9 years ago

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

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@…> 9 years ago.
Bring generic_views.txt up to date with amgic-removal changes

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by Malcolm Tredinnick <malcolm@…>

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

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

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

comment:2 Changed 9 years ago by adrian

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

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

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