Skip to content

Relationship Properties #257

@kumarrishianand

Description

@kumarrishianand

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions