Author: russellm
Date: 2010-10-08 10:47:09 -0500 (Fri, 08 Oct 2010)
New Revision: 14028

Modified:
   django/branches/releases/1.2.X/docs/ref/generic-views.txt
Log:
[1.2.X] Fixed #14232 -- Clarified the data type of date_list in date-based 
generic views. Thanks to clelland for the report and patch.

Backport of r14020 from trunk.

Modified: django/branches/releases/1.2.X/docs/ref/generic-views.txt
===================================================================
--- django/branches/releases/1.2.X/docs/ref/generic-views.txt   2010-10-08 
15:46:49 UTC (rev 14027)
+++ django/branches/releases/1.2.X/docs/ref/generic-views.txt   2010-10-08 
15:47:09 UTC (rev 14028)
@@ -197,10 +197,10 @@
 
 In addition to ``extra_context``, the template's context will be:
 
-    * ``date_list``: A list of ``datetime.date`` objects representing all
-      years that have objects available according to ``queryset``. These are
-      ordered in reverse. This is equivalent to
-      ``queryset.dates(date_field, 'year')[::-1]``.
+    * ``date_list``: A ``DateQuerySet`` object containing all years that have
+      have objects available according to ``queryset``, represented as
+      ``datetime.datetime`` objects. These are ordered in reverse. This is
+      equivalent to ``queryset.dates(date_field, 'year')[::-1]``.
 
     .. versionchanged:: 1.0
        The behaviour depending on ``template_object_name`` is new in this 
version.
@@ -282,9 +282,9 @@
 
 In addition to ``extra_context``, the template's context will be:
 
-    * ``date_list``: A list of ``datetime.date`` objects representing all
-      months that have objects available in the given year, according to
-      ``queryset``, in ascending order.
+    * ``date_list``: A ``DateQuerySet`` object containing all months that have
+      have objects available according to ``queryset``, represented as
+      ``datetime.datetime`` objects, in ascending order.
 
     * ``year``: The given year, as a four-character string.
 
@@ -372,9 +372,9 @@
 
 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.    
+    * ``date_list``: A ``DateQuerySet`` object containing all days that have
+      have objects available in the given month, according to ``queryset``,
+      represented as ``datetime.datetime`` objects, in ascending order.
 
     * ``month``: A ``datetime.date`` object representing the given month.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to