Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Documented next/previous_week. Refs #10890.

  • Loading branch information...
commit b0c1e5c081472436bf2300af3073cef1df1bd696 1 parent 35e6585
Aymeric Augustin authored May 20, 2012

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  docs/ref/class-based-views.txt
8  docs/ref/class-based-views.txt
@@ -1255,6 +1255,14 @@ WeekArchiveView
1255 1255
     * ``week``: A ``datetime.date`` object representing the first day of
1256 1256
       the given week.
1257 1257
 
  1258
+    * ``next_week``: A ``datetime.date`` object representing the first day
  1259
+      of the next week. If the next week is in the future, this will be
  1260
+      ``None``.
  1261
+
  1262
+    * ``previous_week``: A ``datetime.date`` object representing the first
  1263
+      day of the previous week. Unlike ``next_week``, this will never be
  1264
+      ``None``.
  1265
+
1258 1266
     **Notes**
1259 1267
 
1260 1268
     * Uses a default ``template_name_suffix`` of ``_archive_week``.

0 notes on commit b0c1e5c

Please sign in to comment.
Something went wrong with that request. Please try again.