Adding multiple models for the admin page in Django
Posted on 2015-01-23
I'm trying to learn Django by building a quiz application.
This is what I have:
- Table for Question
- Table for Choices
- Table for Quiz
I can link the Choices model with the Question model in the Admin page.
But when I try to link the Question model with the Quiz model in the Admin page, I can only add questions; but I cannot add choices. When I try to add the Choices model to the Quiz model without having a ForeignKey relationship between the Quiz and Choices table... but that makes no sense.
Is there any way I can associate the questions and choices in the Quiz page without having the relationship between Quiz and Choices?
Appreciate any help!