#1700 closed defect (fixed)
[magic-removal] [patch] docs/generic_views.txt document update
| Reported by: | 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)
Change History (4)
by , 20 years ago
| Attachment: | generic_views.txt.diff added |
|---|
comment:1 by , 20 years ago
| Summary: | MR: docs/generic_views.txt documents wrong example → [magic-removal] [patch] docs/generic_views.txt document update |
|---|
comment:2 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Bring generic_views.txt up to date with amgic-removal changes