scholrly / neo4django

Drop-in Neo4j/Django integration.
GNU General Public License v3.0
357 stars 83 forks source link

Relationship Properties #257

Open kumarrishianand opened 9 years ago

kumarrishianand commented 9 years ago

Hi, I wanted to use neo4django for a project recently. The model definition looks like

class Trend(models.NodeModel): name = models.StringProperty()

class Tops(models.NodeModel): name = models.StringProperty() trends = models.Relationship(Trend, rel_type='Goes_Well_With', related_name='tops', score = models.IntegerProperty() ) I am getting this error on running manage.py sql command TypeError: init() got an unexpected keyword argument 'score'

Is this the right way to define a relationship property or we have some other way?

Thanks Rishi