Opened 18 years ago

Closed 18 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: 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)

test_proj.zip (8.5 KB ) - added by Tyson Tate <tyson@…> 18 years ago.
Minimal test case

Download all attachments as: .zip

Change History (2)

by Tyson Tate <tyson@…>, 18 years ago

Attachment: test_proj.zip added

Minimal test case

comment:1 by Tyson Tate <tyson@…>, 18 years ago

Resolution: invalid
Status: newclosed

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

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