fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Truncate questions on question list.
[prawokultury.git]
/
questions
/
forms.py
diff --git
a/questions/forms.py
b/questions/forms.py
index
02c37c5
..
77ea6e7
100755
(executable)
--- 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