문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top