Browse Source

em_test bugfix

added a default value for Subsection parent field
Yann Weber 8 years ago
parent
commit
ce9e64ac8e
3 changed files with 2 additions and 0 deletions
  1. 2
    0
      em_test.py
  2. BIN
      examples/em_test.pickle
  3. BIN
      progs/slim/emfile.pickle

+ 2
- 0
em_test.py View File

@@ -231,6 +231,8 @@ subsection.new_field(   'parent',
231 231
                         display_name = 'Parent',
232 232
                         group = editorial_group,
233 233
                         data_handler = 'link',
234
+                        default = None,
235
+                        nullable = True,
234 236
                         allowed_classes = [section],
235 237
                         back_reference = ('section', 'childs'))
236 238
 

BIN
examples/em_test.pickle View File


BIN
progs/slim/emfile.pickle View File


Loading…
Cancel
Save