Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9d1bf9d5ad6c1ad97b1fb915975f3de3c13c4f4e 1 parent de3669d
Russell Keith-Magee authored October 08, 2010

Showing 1 changed file with 10 additions and 10 deletions. Show diff stats Hide diff stats

  1. 20  docs/ref/generic-views.txt
20  docs/ref/generic-views.txt
@@ -197,10 +197,10 @@ If ``template_name`` isn't specified, this view will use the template
197 197
 
198 198
 In addition to ``extra_context``, the template's context will be:
199 199
 
200  
-    * ``date_list``: A list of ``datetime.date`` objects representing all
201  
-      years that have objects available according to ``queryset``. These are
202  
-      ordered in reverse. This is equivalent to
203  
-      ``queryset.dates(date_field, 'year')[::-1]``.
  200
+    * ``date_list``: A ``DateQuerySet`` object containing all years that have
  201
+      have objects available according to ``queryset``, represented as
  202
+      ``datetime.datetime`` objects. These are ordered in reverse. This is
  203
+      equivalent to ``queryset.dates(date_field, 'year')[::-1]``.
204 204
 
205 205
     .. versionchanged:: 1.0
206 206
        The behaviour depending on ``template_object_name`` is new in this version.
@@ -282,9 +282,9 @@ If ``template_name`` isn't specified, this view will use the template
282 282
 
283 283
 In addition to ``extra_context``, the template's context will be:
284 284
 
285  
-    * ``date_list``: A list of ``datetime.date`` objects representing all
286  
-      months that have objects available in the given year, according to
287  
-      ``queryset``, in ascending order.
  285
+    * ``date_list``: A ``DateQuerySet`` object containing all months that have
  286
+      have objects available according to ``queryset``, represented as
  287
+      ``datetime.datetime`` objects, in ascending order.
288 288
 
289 289
     * ``year``: The given year, as a four-character string.
290 290
 
@@ -372,9 +372,9 @@ If ``template_name`` isn't specified, this view will use the template
372 372
 
373 373
 In addition to ``extra_context``, the template's context will be:
374 374
 
375  
-    * ``date_list``: A list of ``datetime.date`` objects representing all
376  
-      days that have objects available in the given month, according to
377  
-      ``queryset``, in ascending order.    
  375
+    * ``date_list``: A ``DateQuerySet`` object containing all days that have
  376
+      have objects available in the given month, according to ``queryset``,
  377
+      represented as ``datetime.datetime`` objects, in ascending order.
378 378
 
379 379
     * ``month``: A ``datetime.date`` object representing the given month.
380 380
 

0 notes on commit 9d1bf9d

Please sign in to comment.
Something went wrong with that request. Please try again.