From b45fd3ffdf2f238e0d16e56895e09c99f2ec50b1 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Sun, 10 Jan 2010 19:52:17 +0000 Subject: Fixed: 3274: Added date_list context variable to the archive_month generic view, consistent with archive_index and archive_year. Thanks Sean Brant. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12195 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/generic-views.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/generic-views.txt b/docs/ref/generic-views.txt index 9824dcdb8f..574db88a60 100644 --- a/docs/ref/generic-views.txt +++ b/docs/ref/generic-views.txt @@ -369,8 +369,15 @@ If ``template_name`` isn't specified, this view will use the template **Template context:** +.. versionadded:: 1.2 + The inclusion of ``date_list`` in the template's context is new. + In addition to ``extra_context``, the template's context will be: + * ``date_list``: A list of ``datetime.date`` objects representing all + days that have objects available in the given month, according to + ``queryset``, in ascending order. + * ``month``: A ``datetime.date`` object representing the given month. * ``next_month``: A ``datetime.date`` object representing the first day of -- cgit v1.3