fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove some indexes
[prawokultury.git]
/
questions
/
forms.py
diff --git
a/questions/forms.py
b/questions/forms.py
index
3a80db1
..
77ea6e7
100755
(executable)
--- a/
questions/forms.py
+++ b/
questions/forms.py
@@
-2,7
+2,13
@@
from django.forms import ModelForm
from .models import Question
class QuestionForm(ModelForm):
from .models import Question
class QuestionForm(ModelForm):
+ required_css_class = 'required'
+
class Meta:
model = Question
fields = ['email', 'question']
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