mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #18353 -- Inconsistency in date-based CBVs.
This commit is contained in:
@@ -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**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user