options
django_spire.core.components.form.options
FormOptions
dataclass
A row is created and edited in a form component, shown in a modal. Give
the application's own component (a :class:ModelFormComponent class
or a callable factory such as functools.partial(...)), or a
form_class with the template that lays out its fields, which the
generic :class:ModelFormComponent shows. The form fires saved with
the row's pk.
component = None
class-attribute
instance-attribute
form_class = None
class-attribute
instance-attribute
template = None
class-attribute
instance-attribute
__post_init__
Source code in django_spire/core/components/form/options.py
build_component
Source code in django_spire/core/components/form/options.py
PageFormOptions
dataclass
A row is created and edited on a page of its own. url_name is the
route that takes the row's key as pk. Creating a row goes to
create_url_name, which takes no arguments, or when that is left out,
to url_name with a pk of 0.
Each 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.