|
@@ -74,7 +74,10 @@ class EmClass(EmComponent):
|
74
|
74
|
## Retrieve list of fields
|
75
|
75
|
# @return fields [EmField]:
|
76
|
76
|
def fields(self, relational = True):
|
77
|
|
- return [ f for f in self.model.components('EmField') if f.class_id == self.uid ]
|
|
77
|
+ if relational:
|
|
78
|
+ return [ f for f in self.model.components('EmField') if f.class_id == self.uid]
|
|
79
|
+ else:
|
|
80
|
+ return [ f for f in self.model.components('EmField') if f.class_id == self.uid and f.fieldtype != 'rel2type' and f.rel_field_id is None]
|
78
|
81
|
|
79
|
82
|
## Retrieve list of type of this class
|
80
|
83
|
# @return types [EditorialModel.types.EmType]:
|