Browse Source

GraphVizBackend bugfix

Yann Weber 9 years ago
parent
commit
7655aa7d54
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      EditorialModel/backend/graphviz.py

+ 2
- 2
EditorialModel/backend/graphviz.py View File

@@ -92,7 +92,7 @@ class EmBackendGraphviz(EmBackendDummy):
92 92
                 if ((cn == 'EmType' and f.optional) or (cn == 'EmFieldGroup' and not f.optional)) and f.rel_field_id is None:
93 93
                     
94 94
                     #if not (f.rel_to_type_id is None):
95
-                    if isinstance(f, EditorialModel.fieldtypes.rel2type.EmFieldRel2Type):
95
+                    if isinstance(f, EditorialModel.fieldtypes.rel2type.EmFieldType):
96 96
                         rel_node_id = '%s%s'%(EmBackendGraphviz._component_id(c), EmBackendGraphviz._component_id(em.component(f.rel_to_type_id)))
97 97
 
98 98
                         rel_node = '\t%s [ label="rel_to_type'%rel_node_id
@@ -119,7 +119,7 @@ class EmBackendGraphviz(EmBackendDummy):
119 119
                         ret += ' { '
120 120
                         first = False
121 121
                     #if not (f.rel_to_type_id is None):
122
-                    if isinstance(f, EditorialModel.fieldtypes.rel2type.EmFieldRel2Type):
122
+                    if isinstance(f, EditorialModel.fieldtypes.rel2type.EmFieldType):
123 123
                         ret += '<f%d> '%cntref
124 124
                         cntref += 1
125 125
                     ret += f.name

Loading…
Cancel
Save