I am implementing a web application based on Google App Engine, Relying on ndb. I am facing a strange problem when trying to update one of the many entities in my db. When I try to update one of its properties (i.e. a string property) I get
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/ndb/model.py", line 1715, in _validate (value,)) BadValueError: Expected string, got (u'a test',)
The same code works when I create a new entity of the same kind.
I know there will be soon someone asking me to add relevant code. It would be practically unreasonable to copy the javascript and python code I developed. I am interested to know if this behavior is known to occur in certain conditions I can check.
UPDATE
consider that the value with which I am trying to update the property is a post parameter (i.e. self.request.get('parameter')
)