summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-05-20 11:58:00 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-05-20 11:58:00 +0200
commitb0c1e5c081472436bf2300af3073cef1df1bd696 (patch)
tree4b55e068b0c9ba069f8e0944f92d47c3bcd6e569 /docs
parent35e65855680be2c8a495ec926c7eaf992c79edc0 (diff)
Documented next/previous_week. Refs #10890.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/class-based-views.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/class-based-views.txt b/docs/ref/class-based-views.txt
index 174539d162..b3f6b19e99 100644
--- a/docs/ref/class-based-views.txt
+++ b/docs/ref/class-based-views.txt
@@ -1255,6 +1255,14 @@ WeekArchiveView
* ``week``: A ``datetime.date`` object representing the first day of
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**
* Uses a default ``template_name_suffix`` of ``_archive_week``.