Fixed #18353 -- Inconsistency in date-based CBVs.

This commit is contained in:
Aymeric Augustin 2012-05-24 13:02:19 +02:00
parent f4abba5200
commit 3b2993ed04
4 changed files with 49 additions and 5 deletions

View file

@ -1171,7 +1171,15 @@ YearArchiveView
have objects available according to ``queryset``, represented as
``datetime.datetime`` objects, in ascending order.
* ``year``: The given year, as a four-character string.
* ``year``: A ``datetime.date`` object representing the given year.
* ``next_year``: A ``datetime.date`` object representing the first day
of the next year. If the next year is in the future, this will be
``None``.
* ``previous_year``: A ``datetime.date`` object representing the first
day of the previous year. Unlike ``next_year``, this will never be
``None``.
**Notes**