apis_core.generic.forms package
- class apis_core.generic.forms.GenericEnrichForm(*args, **kwargs)[source]
Bases:
Form
- base_fields = {}
- declared_fields = {}
- property media
Return all media required to render the widgets on this form.
- class apis_core.generic.forms.GenericFilterSetForm(*args, **kwargs)[source]
Bases:
Form
FilterSet form for generic models Adds a submit button using the django crispy form helper Adds a columns selector that lists all the fields from the model
- base_fields = {}
- clean()[source]
Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
- columns_exclude = []
- declared_fields = {}
- property media
Return all media required to render the widgets on this form.
- class apis_core.generic.forms.GenericImportForm(*args, **kwargs)[source]
Bases:
Form
- base_fields = {}
- declared_fields = {}
- property media
Return all media required to render the widgets on this form.
- class apis_core.generic.forms.GenericMergeForm(*args, **kwargs)[source]
Bases:
Form
- base_fields = {}
- declared_fields = {}
- property media
Return all media required to render the widgets on this form.
- class apis_core.generic.forms.GenericModelForm(*args, **kwargs)[source]
Bases:
ModelForm
Model form for generic models Adds a submit button using the django crispy form helper and sets the ModelChoiceFields and ModelMultipleChoiceFields to use autocomplete replacement fields
- base_fields = {}
- declared_fields = {}
- property media
Return all media required to render the widgets on this form.
Submodules
apis_core.generic.forms.fields module
apis_core.generic.forms.widgets module
- class apis_core.generic.forms.widgets.JSONListWidget(attrs=None)[source]
Bases:
Input
- input_type = 'text'
- property media
- template_name = 'widgets/multiline.html'