mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #3542 -- Add support for changing granularity on ArchiveView.
Resolving the concept from a very old ticket in a more class-based-view manner.
This commit is contained in:
parent
de3ad8bb2d
commit
8d5c11caad
4 changed files with 23 additions and 5 deletions
|
@ -29,6 +29,9 @@ ArchiveIndexView
|
|||
|
||||
* Uses a default ``context_object_name`` of ``latest``.
|
||||
* Uses a default ``template_name_suffix`` of ``_archive``.
|
||||
* Defaults to providing ``date_list`` by year, but this can be altered to
|
||||
month or day using the attribute ``date_list_period``. This also applies
|
||||
to all subclass views.
|
||||
|
||||
YearArchiveView
|
||||
---------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue