Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the idref on RelatedObject should unset the id #219

Open
johnwunder opened this issue Nov 14, 2014 · 0 comments
Open

Setting the idref on RelatedObject should unset the id #219

johnwunder opened this issue Nov 14, 2014 · 0 comments

Comments

@johnwunder
Copy link
Member

r_hn = RelatedObject(relationship="Resolves_To")
r_hn.idref=nc_obs.object_.id_
r_hn.id_ = None
hn_obs.object_.related_objects = [r_hn]

I want to skip that third line. Also it would be great if the idref could be made a keyword argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant