Source

cmsplugin-contact / cmsplugin_contact / forms.py

Konrad Rymczak fe7bb60 





Konrad Rymczak 2bdc15d 

Konrad Rymczak fe7bb60 

















from django import forms
#import settings
from cmsplugin_contact.nospam.forms import HoneyPotForm, RecaptchaForm, AkismetForm
  
class ContactForm(forms.Form):
    email = forms.EmailField()
    username = forms.CharField(required=False)
    phone = forms.CharField(required=False)
    subject = forms.CharField(required=False)
    content = forms.CharField(widget=forms.Textarea())

  
class HoneyPotContactForm(HoneyPotForm):
    pass

class AkismetContactForm(AkismetForm):
    akismet_fields = {
        'comment_author_email': 'email',
        'comment_content': 'content'
    }
    akismet_api_key = None
    

class RecaptchaContactForm(RecaptchaForm):
    recaptcha_public_key = None
    recaptcha_private_key = None
    recaptcha_theme = None