2017-10-08 20:21:51 +00:00
|
|
|
from braces.views import FormMessagesMixin
|
|
|
|
from envelope.views import ContactView
|
|
|
|
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
from .forms import ContactForm
|
|
|
|
|
|
|
|
|
|
|
|
class ContactView(FormMessagesMixin, ContactView):
|
|
|
|
form_invalid_message = _(u"There was an error in the contact form.")
|
2019-03-18 16:41:58 +00:00
|
|
|
form_valid_message = _(u"Thanks for your message.")
|
2017-10-08 20:21:51 +00:00
|
|
|
form_class = ContactForm
|