0
0
mirror of https://github.com/django/django.git synced 2024-11-30 07:06:18 +01:00

Merge pull request #375 from collinanderson/patch-8

versionadded for next/previous_year generic-date-based views doc
This commit is contained in:
Florian Apolloner 2012-09-18 10:32:22 -07:00
commit 11cdfb35a4

View File

@ -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``.