Kaydet (Commit) b771bcc7 authored tarafından Collin Anderson's avatar Collin Anderson

document changes for YearArchiveView.

üst 70248cce
...@@ -87,16 +87,24 @@ YearArchiveView ...@@ -87,16 +87,24 @@ YearArchiveView
* ``year``: A :class:`~datetime.date` object * ``year``: A :class:`~datetime.date` object
representing the given year. representing the given year.
.. versionchanged:: 1.5
Previously, this returned a string.
* ``next_year``: A :class:`~datetime.date` object * ``next_year``: A :class:`~datetime.date` object
representing the first day of the next year, according to representing the first day of the next year, according to
:attr:`~BaseDateListView.allow_empty` and :attr:`~BaseDateListView.allow_empty` and
:attr:`~DateMixin.allow_future`. :attr:`~DateMixin.allow_future`.
.. versionadded:: 1.5
* ``previous_year``: A :class:`~datetime.date` object * ``previous_year``: A :class:`~datetime.date` object
representing the first day of the previous year, according to representing the first day of the previous year, according to
:attr:`~BaseDateListView.allow_empty` and :attr:`~BaseDateListView.allow_empty` and
:attr:`~DateMixin.allow_future`. :attr:`~DateMixin.allow_future`.
.. versionadded:: 1.5
**Notes** **Notes**
* Uses a default ``template_name_suffix`` of ``_archive_year``. * Uses a default ``template_name_suffix`` of ``_archive_year``.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment