date_list context variable incorrectly documented
|Reported by:||Ian Clelland||Owned by:||anonymous|
|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|
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.
Change History (5)
comment:1 Changed 6 years ago by
|Owner:||changed from nobody to anonymous|
|Patch needs improvement:||unset|
|Status:||new → assigned|
|Triage Stage:||Unreviewed → Ready for checkin|