Add registration and login templates plus UI stuff, moderation
This commit is contained in:
12
apps/contact/views.py
Normal file
12
apps/contact/views.py
Normal file
@ -0,0 +1,12 @@
|
||||
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.")
|
||||
form_valid_message = _(u"Thank you for your message.")
|
||||
form_class = ContactForm
|
Reference in New Issue
Block a user