Models¶
FormModel¶
- class dynamic_forms.models.FormModel¶
- name¶
-
- max_length = 50
- unique = True
- submit_url¶
-
- max_length = 100
- unique = True
- success_url¶
-
- max_length = 100
- blank = True
- default = ''
- actions¶
dynamic_forms.fields.TextMultiSelectField
- default = ''
- choices = dynamic_forms.actions.ActionRegistry.get_as_choices()
- form_template¶
-
- max_length = 100
- choices = dynamic_forms.conf.DYNAMIC_FORMS_FORM_TEMPLATES
- success_template¶
-
- max_length = 100
- choices = dynamic_forms.conf.DYNAMIC_FORMS_SUCCESS_TEMPLATES
- allow_display¶
-
- default = False
- recipient_email¶
- fields¶
Related name by FormFieldModel
- data¶
Related name by FormModelData
- dynamic_forms.models.get_fields_as_dict()¶
- dynamic_forms.models.save([*args, **kwargs])¶
FormFieldModel¶
- class dynamic_forms.models.FormFieldModel¶
-
- field_type¶
-
- max_length = 255
- choices = dynamic_forms.formfields.DynamicFormFieldRegistry.get_as_choices()
- label¶
-
- max_length = 255
- name¶
-
- max_length = 50
- blank = True
- _options¶
-
- blank = True
- null = True
- position¶
django.db.models.SmallIntegerField
- blank = True
- default = 0
- dynamic_forms.models.__str__()
- dynamic_forms.models.__unicode__()
- dynamic_forms.models.generate_form_field(form)¶
- dynamic_forms.models.get_form_field_kwargs()¶
- dynamic_forms.models.save([*args, **kwargs])
FormModelData¶
- class dynamic_forms.models.FormModelData¶
-
- value¶
-
- blank = True
- default = ''
- submitted¶
django.db.models.DateTimeField
- auto_now_add = True
- pretty_value()¶
- show_url¶
If the form this data set belongs to has allow_display == True, return the permanent URL. If displaying is not allowed, return an empty string.