Skip to content

Commit

Permalink
Merge pull request #375 from collinanderson/patch-8
Browse files Browse the repository at this point in the history
versionadded for next/previous_year generic-date-based views doc
  • Loading branch information
apollo13 committed Sep 18, 2012
2 parents 70248cc + b771bcc commit 11cdfb3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/ref/class-based-views/generic-date-based.txt
Expand Up @@ -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``.
Expand Down

0 comments on commit 11cdfb3

Please sign in to comment.