1
"""Views for Zinnia entries"""
2
from django.views.generic.list_detail import object_list
3
from django.views.generic.date_based import archive_year
4
from django.views.generic.date_based import archive_month
5
from django.views.generic.date_based import archive_day
6
from django.views.generic.date_based import object_detail
8
from zinnia.models import Entry
9
from zinnia.views.decorators import protect_entry
10
from zinnia.views.decorators import update_queryset
13
entry_index = update_queryset(object_list, Entry.published.all)
15
entry_year = update_queryset(archive_year, Entry.published.all)
17
entry_month = update_queryset(archive_month, Entry.published.all)
19
entry_day = update_queryset(archive_day, Entry.published.all)
21
entry_detail = protect_entry(object_detail)