web.views.account_views.AccountUpdateOrDeleteView module

Module with the web.views.AccountUpdateView view.

class web.views.account_views.AccountUpdateOrDeleteView.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)