Просмотр исходного кода

Adding icon argument to EmType::create() method

Yann Weber 9 лет назад
Родитель
Сommit
65166a5dfd
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      EditorialModel/types.py

+ 1
- 1
EditorialModel/types.py Просмотреть файл

@@ -41,7 +41,7 @@ class EmType(EmComponent):
41 41
     # @see EmComponent::__init__()
42 42
     # 
43 43
     # @todo check that em_class is an EmClass object (fieldtypes can handle it)
44
-    def create(c, name, em_class, sortcolumn='rank', **em_component_args):
44
+    def create(c, name, em_class, sortcolumn='rank', icon=None, **em_component_args):
45 45
         return super(EmType, c).create(name=name, class_id=em_class.uid, sortcolumn=sortcolumn, **em_component_args)
46 46
 
47 47
     @property

Загрузка…
Отмена
Сохранить