class FirstModel(db.Model):
p = db.StringProperty({option:['aa','bb','cc']})
the error is :
NameError: name 'option' is not defined
what should i do ,thanks
class FirstModel(db.Model):
p = db.StringProperty({option:['aa','bb','cc']})
the error is :
NameError: name 'option' is not defined
what should i do ,thanks
You should use:
p = db.StringProperty(choices=set(["aa", "bb", "cc"]))