Commit 11cdfb35 authored by Florian Apolloner's avatar Florian Apolloner
Browse files

Merge pull request #375 from collinanderson/patch-8

versionadded for next/previous_year generic-date-based views doc
parents 70248cce b771bcc7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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``.