1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

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
This commit is contained in:
Karen Tracey
2010-01-10 19:52:17 +00:00
parent 9bb1fa7251
commit b45fd3ffdf
3 changed files with 27 additions and 0 deletions

View File

@@ -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