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

'DjangoNode' has no attribute '__label__' #68

Open
wvhulle opened this issue Sep 8, 2021 · 0 comments
Open

'DjangoNode' has no attribute '__label__' #68

wvhulle opened this issue Sep 8, 2021 · 0 comments

Comments

@wvhulle
Copy link

wvhulle commented Sep 8, 2021

I have built a model where node is a node and property is a property. However, when i try to traverse all connected nodes with

connected_nodes= node.property.all()

This crashes, because the target class of the Traversal is DjangoNode and has no label attribute.
This returns

venv/lib/python3.9/site-packages/neomodel/match.py", line 320, in build_traversal
    rhs_label = ':' + traversal.target_class.__label__
AttributeError: type object 'DjangoNode' has no attribute '__label__'

How do I view all the connected nodes without specifying the class? Thanks.

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

No branches or pull requests

1 participant