diff options
| author | Florian Apolloner <apollo13@apolloner.eu> | 2012-09-18 10:32:22 -0700 |
|---|---|---|
| committer | Florian Apolloner <apollo13@apolloner.eu> | 2012-09-18 10:32:22 -0700 |
| commit | 11cdfb35a4ae39ac091ff5418fd0b21adb9a1db3 (patch) | |
| tree | cd34886b24a599d37afdc497f8303d6da71fbf6d /docs | |
| parent | 70248cce0a8a3144df9f36e15fbeb5cc1b091c3e (diff) | |
| parent | b771bcc7b4ce37368d28db307030cf7c4c773ea2 (diff) | |
Merge pull request #375 from collinanderson/patch-8
versionadded for next/previous_year generic-date-based views doc
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/class-based-views/generic-date-based.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/class-based-views/generic-date-based.txt b/docs/ref/class-based-views/generic-date-based.txt index 64b269f514..c6af23e421 100644 --- a/docs/ref/class-based-views/generic-date-based.txt +++ b/docs/ref/class-based-views/generic-date-based.txt @@ -87,16 +87,24 @@ YearArchiveView * ``year``: A :class:`~datetime.date` object representing the given year. + .. versionchanged:: 1.5 + + Previously, this returned a string. + * ``next_year``: A :class:`~datetime.date` object representing the first day of the next year, according to :attr:`~BaseDateListView.allow_empty` and :attr:`~DateMixin.allow_future`. + .. versionadded:: 1.5 + * ``previous_year``: A :class:`~datetime.date` object representing the first day of the previous year, according to :attr:`~BaseDateListView.allow_empty` and :attr:`~DateMixin.allow_future`. + .. versionadded:: 1.5 + **Notes** * Uses a default ``template_name_suffix`` of ``_archive_year``. |
