summaryrefslogtreecommitdiff
path: root/docs/ref/generic-views.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/generic-views.txt')
-rw-r--r--docs/ref/generic-views.txt7
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