web.views.mailbox_views.MailboxUpdateOrDeleteView module

Module with the web.views.MailboxUpdateView view.

class web.views.mailbox_views.MailboxUpdateOrDeleteView.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