web.views.correspondent_views.CorrespondentUpdateOrDeleteView module

Module with the web.views.CorrespondentUpdateView view.

class web.views.correspondent_views.CorrespondentUpdateOrDeleteView.CorrespondentUpdateOrDeleteView(**kwargs)[source]

Bases: LoginRequiredMixin, UpdateOrDeleteView

View for updating or deleting a single core.models.Correspondent instance.

URL_NAME = 'correspondent-edit'
model

alias of Correspondent

form_class

alias of BaseCorrespondentForm

template_name = 'web/correspondent/correspondent_edit.html'
delete_success_url = '/correspondents/'

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