web.views.email_views package¶
web.views.email_views package containing views for the core.models.Email data.
- class web.views.email_views.EmailArchiveIndexView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,EmailArchiveMixin,ArchiveIndexViewIndexView for the ArchiveViews for emails.
- URL_NAME = 'email-archive-index'¶
- template_name = 'web/email/archive/index.html'¶
- context_object_name = 'object_list'¶
- class web.views.email_views.EmailConversationTableView(**kwargs)[source]¶
Bases:
SingleTableMixin,EmailConversationViewView for tabling
core.models.Emailinstances belonging to an emails conversation.- URL_NAME = 'email-conversation-table'¶
- template_name = 'web/email/email_conversation_table.html'¶
- table_class¶
alias of
BaseEmailTable
- class web.views.email_views.EmailConversationView(**kwargs)[source]¶
Bases:
EmailFilterView,SingleObjectMixinView for filtering listed
core.models.Emailinstances belonging to an emails conversation.- URL_NAME = 'email-conversation'¶
- template_name = 'web/email/email_conversation_filter_list.html'¶
- class web.views.email_views.EmailDayArchiveView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,EmailArchiveMixin,DayArchiveViewDayArchiveView for emails.
- URL_NAME = 'email-archive-day'¶
- template_name = 'web/email/archive/day.html'¶
- month_format = '%m'¶
- class web.views.email_views.EmailDetailWithDeleteView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,DetailWithDeleteView,CustomActionMixinView for a single
core.models.Emailinstance.- URL_NAME = 'email-detail'¶
- template_name = 'web/email/email_detail.html'¶
- success_url = '/emails/'¶
- get_queryset()[source]¶
Restricts the queryset to objects owned by the requesting user.
- Return type:
- post(request, *args, **kwargs)[source]¶
Creates response to a post request.
If no action matches the existing handlers, responds with Http204. Should be executed last in a custom view post method.
- Parameters:
request (
HttpRequest) – The post request to handle.args (Any)
kwargs (Any)
- Return type:
- Returns:
The handlers response to the request. If no matching handler is found Http204.
- Raises:
ImproperlyConfigured – If the called handler method does not return a
django.http.HttpResponse.>
- handle_reprocess(request)[source]¶
Handler function for the reprocess action.
- Parameters:
request (
HttpRequest) – The action request to handle.- Return type:
- Returns:
A template response with the updated view after the action.
- handle_restore(request)[source]¶
Handler function for the restore action.
- Parameters:
request (
HttpRequest) – The action request to handle.- Return type:
- Returns:
A template response with the updated view after the action.
- class web.views.email_views.EmailFilterView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,FilterPageViewView for filtering listed
core.models.Emailinstances.- URL_NAME = 'email-filter-list'¶
- template_name = 'web/email/email_filter_list.html'¶
- context_object_name = 'emails'¶
- filterset_class¶
alias of
EmailFilterSet
- ordering = ['-is_favorite', '-datetime']¶
- class web.views.email_views.EmailMonthArchiveView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,EmailArchiveMixin,MonthArchiveViewMonthArchiveView for emails.
- URL_NAME = 'email-archive-month'¶
- template_name = 'web/email/archive/month.html'¶
- month_format = '%m'¶
- class web.views.email_views.EmailTableView(**kwargs)[source]¶
Bases:
SingleTableMixin,EmailFilterViewView for filtering a table of
core.models.Emailinstances.- URL_NAME = 'email-table'¶
- template_name = 'web/email/email_table.html'¶
- table_class¶
alias of
BaseEmailTable
- class web.views.email_views.EmailWeekArchiveView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,EmailArchiveMixin,WeekArchiveViewWeekArchiveView for emails.
- URL_NAME = 'email-archive-week'¶
- template_name = 'web/email/archive/week.html'¶
- week_format = '%V'¶
- year_format = '%G'¶
- class web.views.email_views.EmailYearArchiveView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,EmailArchiveMixin,YearArchiveViewYearArchiveView for emails.
- URL_NAME = 'email-archive-year'¶
- template_name = 'web/email/archive/year.html'¶
Subpackages¶
- web.views.email_views.archive_views package
- Submodules
- web.views.email_views.archive_views.EmailArchiveIndexView module
- web.views.email_views.archive_views.EmailArchiveMixin module
- web.views.email_views.archive_views.EmailDayArchiveView module
- web.views.email_views.archive_views.EmailMonthArchiveView module
- web.views.email_views.archive_views.EmailWeekArchiveView module
- web.views.email_views.archive_views.EmailYearArchiveView module
- Submodules