from django import forms
from .models import Questions,SimpleQuestion,MultipleChoiceQuestion

class QuestionForm(forms.ModelForm):
    class Meta:
        model = Question
        fields = ('question','hints','answer' )

class SimpleQuestionForm(forms.ModelForm):
    class Meta:
        model = Question
        fields = ('question','hints','answer' )

class MultipleChoiceQuestionForm(forms.ModelForm):
    class Meta:
        model = Question
        fields = ('question','hints','answer','choices','correct' )

from django import forms

from .models import SimpleQuestion, MultipleChoiceQuestion


class SimpleQuestionForm(forms.ModelForm):
    class Meta:
        model = SimpleQuestion
        fields = ('question', 'hints', 'answer')


class MultipleChoiceQuestionForm(forms.ModelForm):
    class Meta:
        model = MultipleChoiceQuestion
        fields = ('question', 'hints', 'answer', 'choices', 'correct')

Fix typos and import errors in questionnaire forms