X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/92fd89419f48638b2181671cdc6c1f42adcbc395..d8f2d22bca1bf4959b46c1869d762d34d8970b66:/questions/forms.py?ds=sidebyside diff --git a/questions/forms.py b/questions/forms.py index 02c37c5..77ea6e7 100755 --- a/questions/forms.py +++ b/questions/forms.py @@ -7,4 +7,8 @@ class QuestionForm(ModelForm): 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