You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
When assigning more than one value to a repeated StringProperty - only the first one gets stored, i.e.:
from wtforms_appengine.ndb import model_form
from google.appengine.ext import ndb
from webob.multidict import MultiDict
class Model(ndb.Model):
s = ndb.StringProperty(repeated=True)
ModelForm = model_form(Model)
md = MultiDict()
md.add(key='s', value='x')
md.add(key='s', value='y')
print md # CORRECTLY prints TWO values for the "s" key, i.e. `MultiDict([('s', 'x'), ('s', 'y')])`
mf = ModelForm(md)
print mf.s.data # INCORRECTLY prints only the first value for the "s" key, i.e. `['x']`
Shouldn't the last line in the example above print ['x', 'y'] instead of just ['x']?
Thanks!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When assigning more than one value to a repeated StringProperty - only the first one gets stored, i.e.:
Shouldn't the last line in the example above print
['x', 'y']
instead of just['x']
?Thanks!
The text was updated successfully, but these errors were encountered: