Ticket #14232: date_list_documentation_patch.diff
File date_list_documentation_patch.diff, 2.1 KB (added by , 14 years ago) |
---|
-
docs/ref/generic-views.txt
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 all201 years that have objects available according to ``queryset``. These are202 ordered in reverse. This is equivalent to203 ``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 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 all286 months that have objects available in the given year, according to287 `` 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 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 all376 days that have objects available in the given month, according to377 ``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