Skip to content

Instantly share code, notes, and snippets.

@Ivaylo-Bachvarov
Last active August 29, 2015 14:06
Show Gist options
  • Save Ivaylo-Bachvarov/de2fb63c10dcb8935dc0 to your computer and use it in GitHub Desktop.
Save Ivaylo-Bachvarov/de2fb63c10dcb8935dc0 to your computer and use it in GitHub Desktop.
Question:
- id
- title
Choises
- id
- question-id
- text
Answers:
- id
- user
- choise-id
Free-Answer
- id
- question-id
- user
- answer_test
We will make a new question with our admin panel. Then we will make choises that are going to be companies. Just copy some comapnies in to the noew model.
If the user select OtherComapny a text field will apear and the information will be saved as a new Free-Answer.
Then we will migrate and merge the answers with the django shell to make them useble for statistics.
These models can be use for other questionsa and polls. The fact that we want the coises to be companies is 'частен случаи' and we will handle this with the shell. Then we will have a good app that can be usef for everyting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment