FormAutoConfig

Base class: AutoConfig

Refinable members

default_included

Cookbook:

How do I specify which fields to show?

exclude

A list of attribute names to exclude, use __ to drill down to nested attributes. Example: ['album', 'album__year']

Cookbook:

How do I specify which fields to show?

include

A list of attribute names to include, use __ to drill down to nested attributes. Example: ['album', 'album__year']

See include

Cookbook:

How do I specify which fields to show?

instance

An instance of a Django model. If this field is specified, the model attribute will be automatically derived. This cannot be a callable, in that case set model and use instance=lambda... instead of auto__instance.

Cookbook:

How do I change where the form redirects to after completion?

How do I make a field non-editable?

How do I enable a reverse foreign key relationship?

model     (evaluated)

A Django model class

Type: Type[django.db.models.base.Model]

Cookbook:

How do I specify which fields to show?

type