BooleanField
Field of Model for enter boolean value.
BooleanField
¶
Bases: Field
Field of Model for enter boolean value.
Source code in src/ramifice/fields/bool_field.py
__init__(label='', default=False, is_hide=False, is_disable=False, is_ignore=False, hint='', warning=[])
¶
Field of Model for enter boolean value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label
|
str
|
Text label for a web form field. |
''
|
default
|
bool
|
Default value. |
False
|
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. |
[]
|