mirror of
https://github.com/django/django.git
synced 2025-06-06 20:19:13 +00:00
Documented next/previous_week. Refs #10890.
This commit is contained in:
parent
35e6585568
commit
b0c1e5c081
@ -1255,6 +1255,14 @@ WeekArchiveView
|
|||||||
* ``week``: A ``datetime.date`` object representing the first day of
|
* ``week``: A ``datetime.date`` object representing the first day of
|
||||||
the given week.
|
the given week.
|
||||||
|
|
||||||
|
* ``next_week``: A ``datetime.date`` object representing the first day
|
||||||
|
of the next week. If the next week is in the future, this will be
|
||||||
|
``None``.
|
||||||
|
|
||||||
|
* ``previous_week``: A ``datetime.date`` object representing the first
|
||||||
|
day of the previous week. Unlike ``next_week``, this will never be
|
||||||
|
``None``.
|
||||||
|
|
||||||
**Notes**
|
**Notes**
|
||||||
|
|
||||||
* Uses a default ``template_name_suffix`` of ``_archive_week``.
|
* Uses a default ``template_name_suffix`` of ``_archive_week``.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user