DeleteView

class djmvc.views.delete.DeleteView(**kwargs)[source]

Bases: DeleteMixin, JsonDeleteMixin, ObjectFormMixin, TemplateViewMixin, DeleteView

Confirm and delete a single object.

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

property title

Human-readable label with the model class name removed.

get_form_valid_message()[source]

Success toast message after valid submit.

form_valid(form)[source]

Show success message and delegate to Django’s form_valid.

DeleteObjectsView

class djmvc.views.delete.DeleteObjectsView(**kwargs)[source]

Bases: DeleteMixin, ListActionMixin, FormView

Bulk delete for rows selected on the list view.

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

property title

Human-readable label with the model class name removed.

get_form_valid_message()[source]

Success toast message after valid submit.

form_valid(form)[source]

Show success message and delegate to Django’s form_valid.