Opened 9 years ago

Closed 9 years ago

#2385 closed defect (invalid)

"date_list" is empty in "archive_index" generic view

Reported by: Tyson Tate <tyson@…> Owned by: jacob
Component: Generic views Version: master
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: UI/UX:


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 objects representing all years that have objects available according to queryset." It does not.

Attachments (1) (8.5 KB) - added by Tyson Tate <tyson@…> 9 years ago.
Minimal test case

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by Tyson Tate <tyson@…>

Minimal test case

comment:1 Changed 9 years ago by Tyson Tate <tyson@…>

  • Resolution set to invalid
  • Status changed from new to closed

Test case was buggy. Invalid. Thanks to ubernostrum for the catch.

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