-1👍
ForeignKey
is the right field type. A OneToMany
is only a reverse ManyToOne
relation (which is a foreign key).
You can use InlineModelAdmin
to edit a Quiz
and its Question
s on the same form.
Editing Answer
s on the same page would involve nested inline formsets, which is, AFAIK, not part of Django. If you want to achieve this, you might be interested in the following questions:
Source:stackexchange.com