diff options
| author | Collin Anderson <collin@onetencommunications.com> | 2012-09-18 10:56:39 -0400 |
|---|---|---|
| committer | Collin Anderson <collin@onetencommunications.com> | 2012-09-18 11:06:10 -0400 |
| commit | b771bcc7b4ce37368d28db307030cf7c4c773ea2 (patch) | |
| tree | cd34886b24a599d37afdc497f8303d6da71fbf6d /docs | |
| parent | 70248cce0a8a3144df9f36e15fbeb5cc1b091c3e (diff) | |
document changes for YearArchiveView.
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``. |
