Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

document changes for YearArchiveView.

  • Loading branch information...
commit b771bcc7b4ce37368d28db307030cf7c4c773ea2 1 parent 70248cc
@collinanderson collinanderson authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/ref/class-based-views/generic-date-based.txt
View
8 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``.
Please sign in to comment.
Something went wrong with that request. Please try again.