forked from rtpm/cmsplugin_contact
-
Notifications
You must be signed in to change notification settings - Fork 62
/
forms.py
30 lines (23 loc) · 892 Bytes
/
forms.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from django import forms
#import settings
from stopspam.forms import HoneyPotForm, RecaptchaForm, AkismetForm
class HoneyPotContactForm(HoneyPotForm):
email = forms.EmailField()
subject = forms.CharField(required=False)
content = forms.CharField(widget=forms.Textarea())
class AkismetContactForm(AkismetForm):
akismet_fields = {
'comment_author_email': 'email',
'comment_content': 'content'
}
email = forms.EmailField()
subject = forms.CharField(required=False)
content = forms.CharField(widget=forms.Textarea())
akismet_api_key = None
class RecaptchaContactForm(RecaptchaForm):
email = forms.EmailField()
subject = forms.CharField(required=False)
content = forms.CharField(widget=forms.Textarea())
recaptcha_public_key = None
recaptcha_private_key = None
recaptcha_theme = None