#1676 closed defect (duplicate)
docs/generic_views.txt needs slight update
| Reported by: | 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: | no | UI/UX: | no |
Description
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]
Note:
See TracTickets
for help on using tickets.
This report is duplicated in #1700 and there is a patch attached to the latter, so closing this ticket.