Commit b28e58d9 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

refactor(deprecation): subject_relations() has been inlined

parent d1071e61d149
Pipeline #158637 passed with stages
in 5 minutes
......@@ -45,7 +45,7 @@ def copy_entity(original, cw_skip_copy_for=None, **attributes):
"""
attrs = attributes.copy()
original.complete()
for rschema in original.e_schema.subject_relations():
for rschema in original.e_schema.subject_relations.values():
if (not rschema.final or rschema.meta
or (rschema.type, 'subject') in original.cw_skip_copy_for):
continue
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment