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:
Marc Tamlyn 2012-08-18 16:28:17 +01:00
parent de3ad8bb2d
commit 8d5c11caad
4 changed files with 23 additions and 5 deletions

View file

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