options
django_spire.core.components.confirmation.options
DeleteOptions
dataclass
A row is deleted through a confirmation component, shown in a modal.
component is the confirmation, which soft-deletes the row with
set_deleted() unless another is given. It fires confirmed with the
row's pk.
component = ModelSetDeletedConfirmationComponent
class-attribute
instance-attribute
__post_init__
Source code in django_spire/core/components/confirmation/options.py
PageDeleteOptions
dataclass
A row is deleted on a page of its own. url_name is the route that
takes the row's key as pk.
The link carries a return_url for the page to send the user to
afterwards: the route named by return_url_name, or when that is left
out, the address the list is shown at. A page that does not read
return_url goes wherever it always does.