On the Google App Engine, I have a webapp2 model like this:
def Person(db.model):
first_name = db.StringProperty()
surname = db.StringProperty()
languages_spoken = db. ListProperty()
However, I’d like to have the languages_spoken list constrained to a list of options, say English, French, and Spanish, that can change as time goes on. With SQL this would be easy with person, language, and person_language tables (or similar) but I can’t get my head round how to do it in this case, or even if it’s possible. Any suggestions anyone?
In the end I went with this, thanks to the pointers from the two other answers: