From 6b694097dc22569f1b86feec20a1ff30a2b14b26 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 17 Feb 2006 18:03:54 +0000 Subject: Fixed #1302 -- Added next_month and previous_month to template context in archive_month date-based generic view. Thanks, ubernostrum git-svn-id: http://code.djangoproject.com/svn/django/trunk@2323 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/generic_views.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/generic_views.txt b/docs/generic_views.txt index 8a970a8e76..f9544e12b2 100644 --- a/docs/generic_views.txt +++ b/docs/generic_views.txt @@ -192,7 +192,14 @@ The date-based generic functions are: Has the following template context: ``month`` - The given month (a datetime.datetime object) + The given month (a datetime.date object) + ``next_month`` + **New in Django development version.** The first day of the next + month, or None if the next month is in the future (a datetime.date + object) + ``previous_month`` + **New in Django development version.** The first day of the + previous month (a datetime.date object) ``object_list`` List of objects published in the given month -- cgit v1.3