Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#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)

date_list_documentation_patch.diff (2.1 KB ) - added by Ian Clelland 14 years ago.

Download all attachments as: .zip

Change History (5)

by Ian Clelland, 14 years ago

comment:1 by anonymous, 14 years ago

Owner: changed from nobody to anonymous
Status: newassigned
Triage Stage: UnreviewedReady for checkin

comment:2 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [14020]) Fixed #14232 -- Clarified the data type of date_list in date-based generic views. Thanks to clelland for the report and patch.

comment:3 by Russell Keith-Magee, 14 years ago

(In [14028]) [1.2.X] Fixed #14232 -- Clarified the data type of date_list in date-based generic views. Thanks to clelland for the report and patch.

Backport of r14020 from trunk.

comment:4 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top