class AnswerInline(admin.StackedInline):
fields = ('answer_text','points')
readonly_fields = ('question',)
extra = 0
class AnswerRadioInline(AnswerInline):
model = AnswerRadio
class AnswerSelectMultipleInline(AnswerInline):
model = AnswerSelectMultiple
class AnswerTextInline(AnswerInline):
model= AnswerText
class QuestionAdmin(admin.ModelAdmin):
inlines = [AnswerRadioInline,AnswerSelectMultipleInline,AnswerTextInline,]
admin.site.register(Question, QuestionAdmin)