سؤال

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