mirror of
https://github.com/yweber/lodel2.git
synced 2026-03-21 02:22:02 +01:00
[not tested] Added a boolean field
This commit is contained in:
parent
60e23b4946
commit
3801148387
1 changed files with 12 additions and 0 deletions
12
EditorialModel/fieldtypes/bool.py
Normal file
12
EditorialModel/fieldtypes/bool.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#-*- coding: utf-8 -*-
|
||||
|
||||
from EditorialModel.fields import EmField
|
||||
|
||||
class EmFieldBool(EmField):
|
||||
|
||||
ftype = 'bool'
|
||||
|
||||
## @brief A char field
|
||||
# @brief max_length int : The maximum length of this field
|
||||
def __init__(self, **kwargs):
|
||||
super(EmFieldChar, self).__init__(**kwargs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue