X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/99ff7cb43e460029b1769fc21f704b7614381cf1..3a2c054cbdd823dc9df5cd33a9cfba622a7d630c:/contact/forms.py?ds=sidebyside diff --git a/contact/forms.py b/contact/forms.py index 70a415b..82eba4b 100644 --- a/contact/forms.py +++ b/contact/forms.py @@ -5,6 +5,7 @@ from django.core.validators import email_re from django import forms from django.template.loader import render_to_string from django.template import RequestContext +from django.utils.translation import ugettext_lazy as _ from .models import Attachment, Contact @@ -20,9 +21,13 @@ class ContactFormMeta(forms.Form.__metaclass__): class ContactForm(forms.Form): """Subclass and define some fields.""" __metaclass__ = ContactFormMeta + + form_tag = None + form_title = _('Contact form') + submit_label = _('Submit') + required_css_class = 'required' contact = forms.CharField(max_length=128) - form_tag = None def save(self, request): body = {}