Opened 18 years ago
Closed 18 years ago
#2385 closed defect (invalid)
"date_list" is empty in "archive_index" generic view
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Generic views | Version: | dev |
Severity: | normal | Keywords: | archive_index date_based genericview |
Cc: | tyson@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I created a date-based model with templates and used the django.views.generic.date_based
views to hook them up. I added objects through the admin interface.
When navigating to the "archive_index", there are no objects in "date_list". The docs say that "date_list" contains "A list of datetime.date objects representing all years that have objects available according to queryset." It does not.
Attachments (1)
Change History (2)
by , 18 years ago
Attachment: | test_proj.zip added |
---|
comment:1 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Test case was buggy. Invalid. Thanks to ubernostrum for the catch.
Note:
See TracTickets
for help on using tickets.
Minimal test case