瀏覽代碼

document changes for YearArchiveView.

Collin Anderson 12 年之前
父節點
當前提交
b771bcc7b4
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      docs/ref/class-based-views/generic-date-based.txt

+ 8 - 0
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``.