Django

Code

Ticket #1700 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Reported by: asmodai@in-nomine.org Assigned to: jacob
Milestone: Component: Documentation
Version: magic-removal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

generic_views.txt.diff (1.9 kB) - added by Malcolm Tredinnick <malcolm@pointy-stick.com> on 04/27/06 06:42:21.
Bring generic_views.txt up to date with amgic-removal changes

Change History

04/27/06 06:42:21 changed by Malcolm Tredinnick <malcolm@pointy-stick.com>

  • attachment generic_views.txt.diff added.

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

04/27/06 06:42:50 changed by Malcolm Tredinnick <malcolm@pointy-stick.com>

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

04/28/06 20:14:56 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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

10/24/06 15:17:23 changed by adrian

  • milestone deleted.

Milestone Version 0.92 deleted


Add/Change #1700 ([magic-removal] [patch] docs/generic_views.txt document update)




Change Properties
Action