Browse Source

[not tested] Added a boolean field

Yann Weber 9 years ago
parent
commit
3801148387
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      EditorialModel/fieldtypes/bool.py

+ 12
- 0
EditorialModel/fieldtypes/bool.py View File

@@ -0,0 +1,12 @@
1
+#-*- coding: utf-8 -*-
2
+
3
+from EditorialModel.fields import EmField
4
+
5
+class EmFieldBool(EmField):
6
+    
7
+    ftype = 'bool'
8
+    
9
+    ## @brief A char field
10
+    # @brief max_length int : The maximum length of this field
11
+    def __init__(self, **kwargs):
12
+        super(EmFieldChar, self).__init__(**kwargs)

Loading…
Cancel
Save