diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2010-01-10 19:52:17 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2010-01-10 19:52:17 +0000 |
| commit | b45fd3ffdf2f238e0d16e56895e09c99f2ec50b1 (patch) | |
| tree | 02bb0db124330d5f5a6ccad706805ee6fcf5ffc0 /docs/ref/generic-views.txt | |
| parent | 9bb1fa725154e6d1d0317fa0c48d7c240ad5e2d4 (diff) | |
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
Diffstat (limited to 'docs/ref/generic-views.txt')
| -rw-r--r-- | docs/ref/generic-views.txt | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
