diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-08 15:47:09 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-08 15:47:09 +0000 |
| commit | 9d1bf9d5ad6c1ad97b1fb915975f3de3c13c4f4e (patch) | |
| tree | ebe0d33845937f73669a101cd48389b8768ae905 /docs/ref | |
| parent | de3669d2fa16ea7603b76e9e21e575974916ecf4 (diff) | |
[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
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/generic-views.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/ref/generic-views.txt b/docs/ref/generic-views.txt index 65f0d2eb30..ea7fe2a49b 100644 --- a/docs/ref/generic-views.txt +++ b/docs/ref/generic-views.txt @@ -197,10 +197,10 @@ If ``template_name`` isn't specified, this view will use the template 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 @@ If ``template_name`` isn't specified, this view will use the template 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 @@ If ``template_name`` isn't specified, this view will use the template 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. |
