from django import forms
from django.core.exceptions import ValidationError


from prosodyauth.forms import PlaceholderForm
from simplecaptcha import captcha


contact_reasons = (
        ('question', 'Question'),
        ('problem', 'Problem'),
        ('suggestion', 'Suggestion'),
        ('other', 'Other'),
        )

class ContactForm(PlaceholderForm):
    username = forms.CharField(widget=forms.HiddenInput)
    ip_address = forms.GenericIPAddressField(widget=forms.HiddenInput)
    subject = forms.ChoiceField(choices=contact_reasons)
    email = forms.EmailField()
    message = forms.CharField(widget=forms.Textarea)


Add ContactForm