UpdateView

class djmvc.views.update.UpdateView(**kwargs)[source]

Bases: ActionMixin, JsonFormMixin, ObjectModelFormMixin, TemplateViewMixin, UpdateView

Update an existing model instance.

permission_shortcode

Default 'change'.

Type:

str

tags

Default ['object'] (object action menu).

Type:

list[str]

default_template_name

Form template.

Type:

str

icon

Bootstrap Icons name.

Type:

str

color

Bulma button colour modifier.

Type:

str

fields

Model form fields. Set on clone or subclass.

Type:

list[str]

form_class

Explicit form class instead of fields.

Type:

type

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.