mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user