mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
@@ -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
|
||||
---------------
|
||||
|
||||
Reference in New Issue
Block a user