1 from django.forms import ModelForm
2 from .models import Question
4 class QuestionForm(ModelForm):
5 required_css_class = 'required'
9 fields = ['email', 'question']
11 def save(self, *args, **kwargs):
12 instance = super(QuestionForm, self).save(*args, **kwargs)