X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/548d9fe735b1c4f04c296f01a3bf73149f627005..b2b5fe2fe17de8b00bc8f213172b3928f2f412b5:/questions/forms.py?ds=inline

diff --git a/questions/forms.py b/questions/forms.py
index 3a80db1..77ea6e7 100755
--- a/questions/forms.py
+++ b/questions/forms.py
@@ -2,7 +2,13 @@ from django.forms import ModelForm
 from .models import Question
 
 class QuestionForm(ModelForm):
+    required_css_class = 'required'
+
     class Meta:
         model = Question
         fields = ['email', 'question']
-        # TODO: honeypot!
+
+    def save(self, *args, **kwargs):
+        instance = super(QuestionForm, self).save(*args, **kwargs)
+        instance.ack_author()
+        return instance