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

Relationship Properties #257

Open
kumarrishianand opened this issue Jul 14, 2015 · 0 comments
Open

Relationship Properties #257

kumarrishianand opened this issue Jul 14, 2015 · 0 comments

Comments

@kumarrishianand
Copy link

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

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