web.views package

web.views package containing all views for the Eonvelope webapp.

class web.views.AccountCreateView(**kwargs)[source]

Bases: LoginRequiredMixin, CreateView

View for creating a single core.models.Account instance.

URL_NAME = 'account-create'
model

alias of Account

form_class

alias of BaseAccountForm

template_name = 'web/account/account_create.html'
get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

Return type:

BaseAccountForm

Parameters:

form_class (type[BaseAccountForm] | None)

class web.views.AccountDetailWithDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, DetailWithDeleteView, CustomActionMixin, TestActionMixin

View for a single core.models.Account instance.

URL_NAME = 'account-detail'
model

alias of Account

template_name = 'web/account/account_detail.html'
success_url = '/accounts/'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Extended to add the accounts latest emails to the context.

Return type:

dict[str, Any]

Parameters:

kwargs (Any)

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:
Return type:

HttpResponse

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_update_mailboxes(request)[source]

Handler function for the update-mailboxes action.

Parameters:

request (HttpRequest) – The action request to handle.

Return type:

HttpResponse

Returns:

A template response with the updated view after the action.

handle_add_daemons(request)[source]

Handler function for the add-daemons action.

Parameters:

request (HttpRequest) – The action request to handle.

Return type:

HttpResponse

Returns:

A template response with the updated view after the action.

class web.views.AccountEmailsFilterView(**kwargs)[source]

Bases: EmailFilterView, SingleObjectMixin

View for filtering listed core.models.Email instances belonging to a certain account.

URL_NAME = 'account-emails'
template_name = 'web/account/account_email_filter_list.html'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Extended method to pass the query parameters to the context.

References

https://jeffpohlmeyer.com/django-filters-with-pagination

Return type:

dict[str, Any]

Returns:

The view’s context with added query parameters.

Parameters:

kwargs (Any)

class web.views.AccountEmailsTableView(**kwargs)[source]

Bases: SingleTableMixin, AccountEmailsFilterView

View for tabling core.models.Email instances belonging to a certain account.

URL_NAME = 'account-emails-table'
template_name = 'web/account/account_email_table.html'
table_class

alias of BaseEmailTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.AccountFilterView(**kwargs)[source]

Bases: LoginRequiredMixin, FilterPageView

View for filtering listed core.models.Account instances.

URL_NAME = 'account-filter-list'
model

alias of Account

template_name = 'web/account/account_filter_list.html'
filterset_class

alias of AccountFilterSet

ordering = ['-is_favorite', 'mail_address']
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

class web.views.AccountTableView(**kwargs)[source]

Bases: SingleTableMixin, AccountFilterView

View for filtering a table of core.models.Account instances.

URL_NAME = 'account-table'
template_name = 'web/account/account_table.html'
table_class

alias of BaseAccountTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.AccountUpdateOrDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, UpdateOrDeleteView

View for updating or deleting a single core.models.Account instance.

URL_NAME = 'account-edit'
model

alias of Account

form_class

alias of BaseAccountForm

template_name = 'web/account/account_edit.html'
delete_success_url = '/accounts/'

The URL to redirect to after deletion. Must be set.

get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

Return type:

BaseAccountForm

Parameters:

form_class (type[BaseAccountForm] | None)

class web.views.AttachmentDetailWithDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, DetailWithDeleteView, CustomActionMixin

View for a single core.models.Attachment instance.

URL_NAME = 'attachment-detail'
model

alias of Attachment

template_name = 'web/attachment/attachment_detail.html'
success_url = '/attachments/'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

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:
Return type:

HttpResponse

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_share(request)[source]

Handler function for the share action.

Parameters:

request (HttpRequest) – The action request to handle.

Return type:

HttpResponse

Returns:

A template response with the updated view after the action.

class web.views.AttachmentFilterView(**kwargs)[source]

Bases: LoginRequiredMixin, FilterPageView

View for filtering listed core.models.Attachment instances.

URL_NAME = 'attachment-filter-list'
model

alias of Attachment

template_name = 'web/attachment/attachment_filter_list.html'
context_object_name = 'attachments'
filterset_class

alias of AttachmentFilterSet

ordering = ['-is_favorite', 'file_name']
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

class web.views.AttachmentTableView(**kwargs)[source]

Bases: SingleTableMixin, AttachmentFilterView

View for filtering a table of core.models.Attachment instances.

URL_NAME = 'attachment-table'
template_name = 'web/attachment/attachment_table.html'
table_class

alias of BaseAttachmentTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.CorrespondentDetailWithDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, DetailWithDeleteView, CustomActionMixin

View for a single core.models.Correspondent instance.

URL_NAME = 'correspondent-detail'
model

alias of Correspondent

template_name = 'web/correspondent/correspondent_detail.html'
success_url = '/correspondents/'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Extended to add the accounts latest emails to the context.

Return type:

dict[str, Any]

Parameters:

kwargs (Any)

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:
Return type:

HttpResponse

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_share(request)[source]

Handler function for the share action.

Parameters:

request (HttpRequest) – The action request to handle.

Return type:

HttpResponse

Returns:

A template response with the updated view after the action.

class web.views.CorrespondentEmailsFilterView(**kwargs)[source]

Bases: LoginRequiredMixin, FilterPageView, SingleObjectMixin

View for filtering listed core.models.EmailCorrespondent instances with a certain correspondent.

URL_NAME = 'correspondent-emails'
model

alias of EmailCorrespondent

template_name = 'web/correspondent/correspondent_email_filter_list.html'
context_object_name = 'correspondent_emails'
filterset_class

alias of CorrespondentEmailFilterSet

ordering = ['-created']
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Extended method to pass the query parameters to the context.

References

https://jeffpohlmeyer.com/django-filters-with-pagination

Return type:

dict[str, Any]

Returns:

The view’s context with added query parameters.

Parameters:

kwargs (Any)

class web.views.CorrespondentEmailsTableView(**kwargs)[source]

Bases: SingleTableMixin, CorrespondentEmailsFilterView

View for tabling core.models.Email instances belonging to a certain correspondent.

URL_NAME = 'correspondent-emails-table'
template_name = 'web/correspondent/correspondent_email_table.html'
table_class

alias of BaseCorrespondentEmailTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.CorrespondentFilterView(**kwargs)[source]

Bases: LoginRequiredMixin, FilterPageView

View for filtering listed core.models.Correspondent instances.

URL_NAME = 'correspondent-filter-list'
model

alias of Correspondent

template_name = 'web/correspondent/correspondent_filter_list.html'
context_object_name = 'correspondents'
filterset_class

alias of CorrespondentFilterSet

ordering = ['-is_favorite', 'email_address']
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

class web.views.CorrespondentTableView(**kwargs)[source]

Bases: SingleTableMixin, CorrespondentFilterView

View for filtering a table of core.models.Correspondent instances.

URL_NAME = 'correspondent-table'
template_name = 'web/correspondent/correspondent_table.html'
table_class

alias of BaseCorrespondentTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.CorrespondentUpdateOrDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, UpdateOrDeleteView

View for updating or deleting a single core.models.Correspondent instance.

URL_NAME = 'correspondent-edit'
model

alias of Correspondent

form_class

alias of BaseCorrespondentForm

template_name = 'web/correspondent/correspondent_edit.html'
delete_success_url = '/correspondents/'

The URL to redirect to after deletion. Must be set.

get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

class web.views.DaemonCreateView(**kwargs)[source]

Bases: LoginRequiredMixin, CreateView

View for creating a single core.models.Daemon instance.

URL_NAME = 'daemon-create'
model

alias of Daemon

form_class

alias of CreateDaemonForm

template_name = 'web/daemon/daemon_create.html'
get_form_kwargs()[source]

Extended to add the user to the form kwargs.

Return type:

dict[str, Any]

class web.views.DaemonDetailWithDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, DetailWithDeleteView, CustomActionMixin, TestActionMixin

View for a single core.models.Daemon instance.

URL_NAME = 'daemon-detail'
model

alias of Daemon

template_name = 'web/daemon/daemon_detail.html'
success_url = '/routines/'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

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:
Return type:

HttpResponse

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_start_daemon(request)[source]

Handler function for the start-daemon action.

Parameters:

request (HttpRequest) – The action request to handle.

Return type:

HttpResponse

Returns:

A template response with the updated view after the action.

handle_stop_daemon(request)[source]

Handler function for the stop-daemon action.

Parameters:

request (HttpRequest) – The action request to handle.

Return type:

HttpResponse

Returns:

A template response with the updated view after the action.

class web.views.DaemonFilterView(**kwargs)[source]

Bases: LoginRequiredMixin, FilterPageView

View for filtering listed core.models.Daemon instances.

URL_NAME = 'daemon-filter-list'
model

alias of Daemon

template_name = 'web/daemon/daemon_filter_list.html'
context_object_name = 'daemons'
filterset_class

alias of DaemonFilterSet

ordering = ['mailbox__name']
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

class web.views.DaemonTableView(**kwargs)[source]

Bases: SingleTableMixin, DaemonFilterView

View for filtering a table of core.models.Daemon instances.

URL_NAME = 'daemon-table'
template_name = 'web/daemon/daemon_table.html'
table_class

alias of BaseDaemonTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.DaemonUpdateOrDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, UpdateOrDeleteView

View for updating or deleting a single core.models.Daemon instance.

URL_NAME = 'daemon-edit'
model

alias of Daemon

form_class

alias of BaseDaemonForm

template_name = 'web/daemon/daemon_edit.html'
delete_success_url = '/routines/'

The URL to redirect to after deletion. Must be set.

get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

Return type:

BaseDaemonForm

Parameters:

form_class (type[BaseDaemonForm] | None)

class web.views.DashboardView(**kwargs)[source]

Bases: LoginRequiredMixin, TemplateView

View function for the web dashboard.

URL_NAME = 'dashboard'
template_name = 'web/dashboard.html'
get_context_data(**kwargs)[source]
Return type:

dict[str, Any]

Parameters:

kwargs (Any)

class web.views.EmailArchiveIndexView(**kwargs)[source]

Bases: LoginRequiredMixin, EmailArchiveMixin, ArchiveIndexView

IndexView for the ArchiveViews for emails.

URL_NAME = 'email-archive-index'
template_name = 'web/email/archive/index.html'
context_object_name = 'object_list'
get_context_data(*args, **kwargs)[source]

Extended method to allow variable page sizes.

Return type:

dict[str, Any]

Returns:

The context with a page_size added to it.

Parameters:
class web.views.EmailConversationTableView(**kwargs)[source]

Bases: SingleTableMixin, EmailConversationView

View for tabling core.models.Email instances belonging to an emails conversation.

URL_NAME = 'email-conversation-table'
template_name = 'web/email/email_conversation_table.html'
table_class

alias of BaseEmailTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.EmailConversationView(**kwargs)[source]

Bases: EmailFilterView, SingleObjectMixin

View for filtering listed core.models.Email instances belonging to an emails conversation.

URL_NAME = 'email-conversation'
template_name = 'web/email/email_conversation_filter_list.html'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Extended method to pass the query parameters to the context.

References

https://jeffpohlmeyer.com/django-filters-with-pagination

Return type:

dict[str, Any]

Returns:

The view’s context with added query parameters.

Parameters:

kwargs (Any)

class web.views.EmailDayArchiveView(**kwargs)[source]

Bases: LoginRequiredMixin, EmailArchiveMixin, DayArchiveView

DayArchiveView for emails.

URL_NAME = 'email-archive-day'
template_name = 'web/email/archive/day.html'
month_format = '%m'
class web.views.EmailDetailWithDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, DetailWithDeleteView, CustomActionMixin

View for a single core.models.Email instance.

URL_NAME = 'email-detail'
model

alias of Email

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:

QuerySet

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:
Return type:

HttpResponse

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:

HttpResponse

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:

HttpResponse

Returns:

A template response with the updated view after the action.

class web.views.EmailFilterView(**kwargs)[source]

Bases: LoginRequiredMixin, FilterPageView

View for filtering listed core.models.Email instances.

URL_NAME = 'email-filter-list'
model

alias of Email

template_name = 'web/email/email_filter_list.html'
context_object_name = 'emails'
filterset_class

alias of EmailFilterSet

ordering = ['-is_favorite', '-datetime']
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

class web.views.EmailMonthArchiveView(**kwargs)[source]

Bases: LoginRequiredMixin, EmailArchiveMixin, MonthArchiveView

MonthArchiveView for emails.

URL_NAME = 'email-archive-month'
template_name = 'web/email/archive/month.html'
month_format = '%m'
class web.views.EmailTableView(**kwargs)[source]

Bases: SingleTableMixin, EmailFilterView

View for filtering a table of core.models.Email instances.

URL_NAME = 'email-table'
template_name = 'web/email/email_table.html'
table_class

alias of BaseEmailTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.EmailWeekArchiveView(**kwargs)[source]

Bases: LoginRequiredMixin, EmailArchiveMixin, WeekArchiveView

WeekArchiveView for emails.

URL_NAME = 'email-archive-week'
template_name = 'web/email/archive/week.html'
week_format = '%V'
year_format = '%G'
class web.views.EmailYearArchiveView(**kwargs)[source]

Bases: LoginRequiredMixin, EmailArchiveMixin, YearArchiveView

YearArchiveView for emails.

URL_NAME = 'email-archive-year'
template_name = 'web/email/archive/year.html'
class web.views.MailboxCreateDaemonView(**kwargs)[source]

Bases: LoginRequiredMixin, DetailView, BaseFormView

View for creating a single core.models.Daemon instance.

URL_NAME = 'mailbox-create-daemon'
model

alias of Mailbox

form_class

alias of CreateMailboxDaemonForm

template_name = 'web/mailbox/mailbox_daemon_create.html'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Insert the single object into the context dict.

Return type:

dict[str, Any]

Parameters:

kwargs (Any)

get_form_kwargs()[source]

Extended to add the user to the form kwargs.

Return type:

dict[str, Any]

get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

Return type:

Any

Parameters:

form_class (type[CreateMailboxDaemonForm] | None)

get_success_url()[source]

Return the URL to redirect to after processing a valid form.

Return type:

str

form_valid(form)[source]

If the form is valid, save the associated model.

Return type:

HttpResponse

Parameters:

form (CreateMailboxDaemonForm)

get(request, *args, **kwargs)[source]

Handle GET requests: instantiate a blank version of the form.

Return type:

HttpResponse

Parameters:
  • request (HttpRequest)

  • args (Any)

  • kwargs (Any)

post(request, *args, **kwargs)[source]

Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.

Return type:

HttpResponse

Parameters:
  • request (HttpRequest)

  • args (Any)

  • kwargs (Any)

class web.views.MailboxDetailWithDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, DetailWithDeleteView, CustomActionMixin, TestActionMixin

View for a single core.models.Mailbox instance.

URL_NAME = 'mailbox-detail'
model

alias of Mailbox

template_name = 'web/mailbox/mailbox_detail.html'
success_url = '/mailboxes/'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Extended to add the mailboxes latest emails to the context.

Return type:

dict[str, Any]

Parameters:

kwargs (Any)

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:
Return type:

HttpResponse

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_fetch(request)[source]

Handler function for the fetch action.

Parameters:

request (HttpRequest) – The action request to handle.

Return type:

HttpResponse

Returns:

A template response with the updated view after the action.

class web.views.MailboxEmailsFilterView(**kwargs)[source]

Bases: EmailFilterView, SingleObjectMixin

View for filtering listed core.models.Email instances belonging to a certain mailbox.

URL_NAME = 'mailbox-emails'
template_name = 'web/mailbox/mailbox_email_filter_list.html'
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

get_context_data(**kwargs)[source]

Extended method to pass the query parameters to the context.

References

https://jeffpohlmeyer.com/django-filters-with-pagination

Return type:

dict[str, Any]

Returns:

The view’s context with added query parameters.

Parameters:

kwargs (Any)

class web.views.MailboxEmailsTableView(**kwargs)[source]

Bases: SingleTableMixin, MailboxEmailsFilterView

View for tabling core.models.Email instances belonging to a certain mailbox.

URL_NAME = 'mailbox-emails-table'
template_name = 'web/mailbox/mailbox_email_table.html'
table_class

alias of BaseEmailTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.MailboxFilterView(**kwargs)[source]

Bases: LoginRequiredMixin, FilterPageView

View for filtering listed core.models.Mailbox instances.

URL_NAME = 'mailbox-filter-list'
model

alias of Mailbox

template_name = 'web/mailbox/mailbox_filter_list.html'
context_object_name = 'mailboxes'
filterset_class

alias of MailboxFilterSet

ordering = ['-is_favorite', 'account__mail_address', 'name']
get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

class web.views.MailboxTableView(**kwargs)[source]

Bases: SingleTableMixin, MailboxFilterView

View for filtering a table of core.models.Mailbox instances.

URL_NAME = 'mailbox-table'
template_name = 'web/mailbox/mailbox_table.html'
table_class

alias of BaseMailboxTable

get_paginate_by(table_data)[source]

Overridden to reconcile mixin and view.

Return type:

int

Parameters:

table_data (QuerySet)

class web.views.MailboxUpdateOrDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, UpdateOrDeleteView

View for updating or deleting a single core.models.Mailbox instance.

URL_NAME = 'mailbox-edit'
model

alias of Mailbox

form_class

alias of BaseMailboxForm

template_name = 'web/mailbox/mailbox_edit.html'
delete_success_url = '/mailboxes/'

The URL to redirect to after deletion. Must be set.

get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

class web.views.UploadEmailView(**kwargs)[source]

Bases: LoginRequiredMixin, DetailView, FormView

View for uploading email and mailbox files to a mailbox.

URL_NAME = 'mailbox-upload'
model

alias of Mailbox

context_object_name = 'mailbox'
form_class

alias of UploadEmailForm

template_name = 'web/mailbox/upload_email.html'
get_success_url()[source]

Gets the success_url of the upload.

Return type:

str

Returns:

The detail url of the mailbox.

get_queryset()[source]

Restricts the queryset to objects owned by the requesting user.

Return type:

QuerySet

form_valid(form)[source]

Runs when the request form data is valid.

Parameters:

form (UploadEmailForm) – The form of the request data.

Return type:

HttpResponse

Returns:

A django.http.HttpResponse redirecting to success_url.

form_invalid(form)[source]

Runs when the request form data is invalid.

Note

This override is required to reconcile FormView and DetailView.

Parameters:

form (UploadEmailForm) – The form of the request data.

Return type:

HttpResponse

Returns:

A django.http.HttpResponse redirecting to success_url.

Subpackages

Submodules