Hey I am trying to create a survey that asks the users to create his own question and list 5 multiple choices. My first sense is that I create two datastores and one to store the user quesiton and one to to store 5 choices mapping to the question just created. but i dont know how exactly I should do with the 5 multiple choices and how to map them with the question. anybody has an idea? Thank you a lot
Share
As far as I understand you want to represent one to many relation in your schema. There is an analytic guide for that.
This is just the gist of how your model should look like. You can access your answers for each question in the Django rendering template like this, from the query you made in GQL and found your question. If you want to specify a max number of answers for each question you have to do it manually.
I definitely recommend that you go through the tutorial.