#14232 closed (fixed)
date_list context variable incorrectly documented
Reported by: | Ian Clelland | Owned by: | anonymous |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | date_list generic views | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The 'date_list' context variable, provided by django.views.generic.date_based.archive_year and .archive_month, is documented as being a list of datetime.date objects. In fact, it is a DateQuerySet, which in at least some circumstances, behaves quite differently.
I believe that the behaviour, as implemented, is correct, and that this is simply a documentation issue. I have attached a patch which, I believe, clarifies the situation.
Attachments (1)
Change History (5)
by , 14 years ago
Attachment: | date_list_documentation_patch.diff added |
---|
comment:1 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
(In [14020]) Fixed #14232 -- Clarified the data type of date_list in date-based generic views. Thanks to clelland for the report and patch.