Opened 18 years ago

Closed 15 years ago

#3274 closed enhancement (fixed)

[patch] Provide date_list to template context in archive_month view

Reported by: paolo <paolo@…> Owned by: nobody
Component: Generic views Version: dev
Severity: normal Keywords: archive_month date_list
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As django.views.generic.date_based.archive_index (and django.views.generic.date_based.archive_year provide) provide a list of datetime.date to template context representing all years (and months) that have objects available according to queryset, it would be coerent that django.views.generic.date_based.archive_month provides a date_list containing datetime.date representing all days that have objects available according to queryset.

Attachments (2)

date_list_for_archive_month.diff (1.8 KB ) - added by paolo <paolo@…> 18 years ago.
date_list_for_archive_month
month_archive_date_list.diff (3.2 KB ) - added by Sean Brant 15 years ago.

Download all attachments as: .zip

Change History (8)

by paolo <paolo@…>, 18 years ago

date_list_for_archive_month

comment:1 by (none), 18 years ago

milestone: Version 1.0

Milestone Version 1.0 deleted

comment:2 by Simon G. <dev@…>, 18 years ago

Triage Stage: UnreviewedReady for checkin

comment:3 by Gary Wilson, 17 years ago

Needs tests: set
Triage Stage: Ready for checkinAccepted

comment:4 by propanbutan <propanbutan@…>, 17 years ago

this works, and has zero potential of breaking anything. in the name of consistency, someone please commit this.

in reply to:  4 comment:5 by Karen Tracey, 16 years ago

Replying to propanbutan <propanbutan@gmx.net>:

this works, and has zero potential of breaking anything. in the name of consistency, someone please commit this.

It needs a test. tests/regressiontests/views/tests/generic/date_based.py looks like a likely a good place to add one.

by Sean Brant, 15 years ago

comment:6 by Karen Tracey, 15 years ago

Resolution: fixed
Status: newclosed

In r12195, forgetting to put the correct incantation in the commit message:

Fixed: 3274: Added date_list context variable to the archive_month generic view, consistent with archive_index and archive_year. Thanks Sean Brant

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