Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Documented next/previous_week. Refs #10890.

  • Loading branch information...
commit b0c1e5c081472436bf2300af3073cef1df1bd696 1 parent 35e6585
@aaugustin aaugustin authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/ref/class-based-views.txt
View
8 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``.
Please sign in to comment.
Something went wrong with that request. Please try again.