Missing font size setting in the lower cloud
[prawokultury.git] / questions / forms.py
1 from django.forms import ModelForm
2 from .models import Question
3
4 class QuestionForm(ModelForm):
5     required_css_class = 'required'
6
7     class Meta:
8         model = Question
9         fields = ['email', 'question']
10
11     def save(self, *args, **kwargs):
12         instance = super(QuestionForm, self).save(*args, **kwargs)
13         instance.ack_author()
14         return instance