1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

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
This commit is contained in:
Adrian Holovaty
2006-02-17 18:03:54 +00:00
parent b3f99ec9fe
commit 6b694097dc
2 changed files with 15 additions and 2 deletions

View File

@@ -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