ChoiceIntDynField
Field of Model.
Type of selective integer field with dynamic addition of elements.
ChoiceIntDynField
¶
Bases: Field
Field of Model.
Type of selective integer field with dynamic addition of elements.
For simulate relationship Many-to-One.
Element are (add|delete) via ModelName.unit_manager(unit) method.
Source code in src/ramifice/fields/choice_int_dyn_field.py
__init__(label='', is_hide=False, is_disable=False, is_ignore=False, hint='', warning=[], is_require=False, is_readonly=False)
¶
Field of Model.
Type of selective integer field with dynamic addition of elements.
For simulate relationship Many-to-One.
Element are (add|delete) via ModelName.unit_manager(unit) method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label
|
str
|
Text label for a web form field. |
''
|
is_hide
|
bool
|
Hide field from user. |
False
|
is_disable
|
bool
|
Blocks access and modification of the element. |
False
|
is_ignore
|
bool
|
If true, the value of this field is not saved in the database. |
False
|
hint
|
str
|
An alternative for the |
''
|
warning
|
list[str]
|
Warning information. |
[]
|
is_require
|
bool
|
Required field. |
False
|
is_readonly
|
bool
|
Specifies that the field cannot be modified by the user. |
False
|
Source code in src/ramifice/fields/choice_int_dyn_field.py
has_value(self, is_migrate=False)
¶
Does the field value match the possible options in choices.