Browse Source

Added an allowaed_class for Publication.collection

prieto 8 years ago
parent
commit
5f52ddcb15
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      em_test.py

+ 1
- 0
em_test.py View File

@@ -181,6 +181,7 @@ collection.new_field(   'publications',
181 181
                         display_name = 'Publications',
182 182
                         group = editorial_group,
183 183
                         data_handler = 'list',
184
+                        allowed_classes = [publication],
184 185
                         back_reference = ('publication', 'collection'))
185 186
 
186 187
 # Classe publication

Loading…
Cancel
Save