From b0c1e5c081472436bf2300af3073cef1df1bd696 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 20 May 2012 11:58:00 +0200 Subject: [PATCH] Documented next/previous_week. Refs #10890. --- docs/ref/class-based-views.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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``.