django-neomodel
django-neomodel copied to clipboard
'DjangoNode' has no attribute '__label__'
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.