web.views.account_views.AccountUpdateOrDeleteView module¶
Module with the web.views.AccountUpdateView view.
- class web.views.account_views.AccountUpdateOrDeleteView.AccountUpdateOrDeleteView(**kwargs)[source]¶
Bases:
LoginRequiredMixin,UpdateOrDeleteViewView for updating or deleting a single
core.models.Accountinstance.- URL_NAME = 'account-edit'¶
- 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:
- get_form(form_class=None)[source]¶
Return an instance of the form to be used in this view.
- Return type:
- Parameters:
form_class (type[BaseAccountForm] | None)