calingen.views.web
¶
Provides the web views.
These views are not model-specific (see
calingen.views.event
and calingen.views.profile
) nor directly
related to render and compile layouts (see calingen.views.generation
),
but provide representations of the app’s data.
Please note: The focus of calingen is to create analogous, paper-based calendar pages. These views are provided as convenience!
Module Contents¶
Classes¶
Provide a list view of all events in a given year. |
- class calingen.views.web.CalendarEntryListView(**kwargs)¶
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,calingen.views.mixins.RestrictToUserMixin
,calingen.views.mixins.AllCalendarEntriesMixin
,django.views.generic.base.TemplateView
Provide a list view of all events in a given year.
Notes
The
CalingenUserProfileIDMixin
is not really required, because the view fetches the (full)Profile
instance anyway. Room for optimization.- template_name = calingen/calendar_entry_list_year.html¶