i have model
in django
created neo4django
.
class person(models.nodemodel): """ persons of company """ email = models.emailproperty(required=true, unique=true, indexed=true, name=_(u'email'), verbose_name=_(u'person email address'), help_text=_(u'bla bla bla text')) full_name = models.stringproperty(name=_(u'person full name')) # neo4j relationships role = models.relationship(role, rel_type='has_role', direction='outgoing', related_name='persons') company = models.relationship(company, rel_type='works_to', direction='outgoing', related_name='employees')
i try on django shell
>>> p = person.objects.create(email=u'email@company.com') >>> p.id 6 >>> person.objects.get(id='6') <person: person object> >>> person.objects.get(email=u'email@company.com') traceback [bla bla bla] [...] doesnotexist: person matching query not exist. >>>
i checked on neo4j
web interface , see created node, without properties!
this problem looks 1 mentioned here not sure if same issue.
i have django 1.4.5
, neo4j 1.8.2
matt lot recommendation. run master git version.
i upgraded django 1.5.1
, problem disappeared. still run 1.8.2 version of neo4j.
update
trying figure out, reverted django 1.4.5
, after research, discovered, problem because of name
attribute on node properties.
so if change
full_name = models.stringproperty(name=_(u'person full name'))
to
full_name = models.stringproperty(verbose_name=_(u'person full name'))
or this
full_name = models.stringproperty()
then works expected.
actually name
issue exists if upgrade django 1.5.1
guess there issue creating properties when having name attribute in it.
Comments
Post a Comment