Re: [Neo4j] neo4j.py + django relationship to same node type

2011-04-29 Thread Tobias Ivarsson
Pythons evaluation model prevents you from referencing things that have not been defined yet. In this case you are trying to reference Person before the class definition of Person is done. Just like in regular Django models this can be worked around by just providing the name of the class as a stri

[Neo4j] neo4j.py + django relationship to same node type

2011-04-28 Thread Hammad
hey it my first try at using django + neo4j together. and i have already run into a problem: here is my model: from neo4j.model import django_model as neoModel class Person(neoModel.NodeModel): name = neoModel.Property(indexed=True) age = neoModel.Property() related = neoModel.Relati