mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #1229 -- Added allow_empty argument to archive_year and archive_month date-based generic views
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e029c9f7f8
commit
73ddfd8bd2
2 changed files with 11 additions and 4 deletions
|
@ -168,6 +168,9 @@ The date-based generic functions are:
|
|||
Yearly archive. Requires that the ``year`` argument be present in the URL
|
||||
pattern.
|
||||
|
||||
**New in Django development version:** Takes an optional ``allow_empty``
|
||||
parameter, as ``archive_index``.
|
||||
|
||||
Uses the template ``app_label/module_name_archive_year`` by default.
|
||||
|
||||
Has the following template context:
|
||||
|
@ -187,6 +190,9 @@ The date-based generic functions are:
|
|||
default, which is a three-letter month abbreviation. To change it to use
|
||||
numbers, use ``"%m"``.
|
||||
|
||||
**New in Django development version:** Takes an optional ``allow_empty``
|
||||
parameter, as ``archive_index``.
|
||||
|
||||
Uses the template ``app_label/module_name_archive_month`` by default.
|
||||
|
||||
Has the following template context:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue