Question

EDIT I re-writed the question including more general aspects.

I'm using StringArrayProperty in neo4django, using use_string = True
so it's saved a single string in Neo4j.

When a new model is created, that field type is a tuple, but I need it as a list.
So this is my approach, when updating the field:

self.mystringarray=list(self.mystringarray)

Now the problem is: How can one search in fields like that one?
The NodeModelManager.filter doesn't seem to work on such a type.

Était-ce utile?

La solution

I found the __member field lookup, which is exactly what I was looking for.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top