web.views.mailbox_views.MailboxDetailWithDeleteView module¶
Module with the web.views.MailboxDetailWithDeleteView view.
- class web.views.mailbox_views.MailboxDetailWithDeleteView.MailboxDetailWithDeleteView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,DetailWithDeleteView,CustomActionMixin,TestActionMixinView for a single
core.models.Mailboxinstance.- URL_NAME = 'mailbox-detail'¶
- 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:
- 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_fetch(request)[source]¶
Handler function for the fetch action.
- Parameters:
request (
HttpRequest) – The action request to handle.- Return type:
- Returns:
A template response with the updated view after the action.