mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #18353 -- Inconsistency in date-based CBVs.
This commit is contained in:
parent
f4abba5200
commit
3b2993ed04
4 changed files with 49 additions and 5 deletions
|
@ -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**
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue