Github user mxmrlv commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/72#discussion_r105642533
--- Diff: aria/modeling/service_template.py ---
@@ -97,6 +97,34 @@ def outputs(cls):
def operation_templates(cls):
return cls.one_to_many_relationship('operation_template',
dict_key='name')
+ @declared_attr
+ def node_types(cls):
+ return cls.one_to_one_relationship('type', key='node_type_fk',
backreference='')
--- End diff --
this solution looks weird. Having to pass blank string in order not to have
backref...
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---