|
@@ -46,8 +46,6 @@ class _LeRelation(lecrud._LeCrud):
|
46
|
46
|
rel_ft.update(cls._uid_fieldtype)
|
47
|
47
|
|
48
|
48
|
rel_ft.update(cls._rel_fieldtypes)
|
49
|
|
- if cls.implements_lerel2type():
|
50
|
|
- rel_ft.update(cls._rel_attr_fieldtypes)
|
51
|
49
|
return rel_ft
|
52
|
50
|
|
53
|
51
|
@classmethod
|
|
@@ -219,6 +217,14 @@ class _LeRel2Type(_LeRelation):
|
219
|
217
|
if self._relation_name is None:
|
220
|
218
|
raise NotImplementedError("Abstract method")
|
221
|
219
|
return self._set_rank(new_rank, superior = self.superior, relation_name = self._relation_name)
|
|
220
|
+
|
|
221
|
+ @classmethod
|
|
222
|
+ def fieldtypes(cls, complete = True):
|
|
223
|
+ ret = dict()
|
|
224
|
+ if complete:
|
|
225
|
+ ret.update(super().fieldtypes())
|
|
226
|
+ ret.update(cls._rel_attr_fieldtypes)
|
|
227
|
+ return ret
|
222
|
228
|
|
223
|
229
|
@classmethod
|
224
|
230
|
def get_max_rank(cls, superior, relation_name):
|