In this case I can successfully view pet-node, related to Pete. Then I created a node for London, where Pete lives, and I want to express the fact that London has Pete as inhabitant:
london = Place.objects.create(name='London')
london.has_inhab.add(pete)
london.save()
Then I try to list what I have just added, and total fail! :
london.has_inhab.all()
[]
At the same time this relationship can be seen in webadmin interface! In graphic mode as well as in shell:
neo4j-sh (London,26)$ ls
==> *name =[London]
==> (me)<-[:<>]-(mydb:Place,5)
==> (me)<-[:has_inhabitants]-(Pete,30)
0 down vote favorite
I am completely confused trying to query related nodes. In my models.py I have:
I have created some nodes and relationships.
In this case I can successfully view pet-node, related to Pete. Then I created a node for London, where Pete lives, and I want to express the fact that London has Pete as inhabitant:
Then I try to list what I have just added, and total fail! :
At the same time this relationship can be seen in webadmin interface! In graphic mode as well as in shell:
neo4j-sh (London,26)$ ls ==> *name =[London] ==> (me)<-[:<>]-(mydb:Place,5)
==> (me)<-[:has_inhabitants]-(Pete,30)