web.views.mailbox_views.MailboxCreateDaemonView module¶
Module with the web.views.DaemonUpdateView view.
- class web.views.mailbox_views.MailboxCreateDaemonView.MailboxCreateDaemonView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,DetailView,BaseFormViewView for creating a single
core.models.Daemoninstance.- URL_NAME = 'mailbox-create-daemon'¶
- 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:
- get_form(form_class=None)[source]¶
Return an instance of the form to be used in this view.
- Return type:
- Parameters:
form_class (type[CreateMailboxDaemonForm] | None)
- get_success_url()[source]¶
Return the URL to redirect to after processing a valid form.
- Return type:
- form_valid(form)[source]¶
If the form is valid, save the associated model.
- Return type:
- Parameters:
form (CreateMailboxDaemonForm)
- get(request, *args, **kwargs)[source]¶
Handle GET requests: instantiate a blank version of the form.
- Return type:
- Parameters: