Commit 9a5bf810 authored by carlosribas's avatar carlosribas
Browse files

Remove ContactView

parent 1d1b8e02
...@@ -32,10 +32,8 @@ from django.template import TemplateDoesNotExist ...@@ -32,10 +32,8 @@ from django.template import TemplateDoesNotExist
from django.template.loader import render_to_string from django.template.loader import render_to_string
from django.views.decorators.cache import cache_page, never_cache from django.views.decorators.cache import cache_page, never_cache
from django.views.generic.base import TemplateView from django.views.generic.base import TemplateView
from django.views.generic.edit import FormView
from portal.config.expert_databases import expert_dbs from portal.config.expert_databases import expert_dbs
from portal.forms import ContactForm
from portal.models import Rna, Database, Xref, EnsemblAssembly from portal.models import Rna, Database, Xref, EnsemblAssembly
from portal.models.rna_precomputed import RnaPrecomputed from portal.models.rna_precomputed import RnaPrecomputed
from portal.config.svg_images import examples from portal.config.svg_images import examples
...@@ -321,20 +319,6 @@ class GenomeBrowserView(TemplateView): ...@@ -321,20 +319,6 @@ class GenomeBrowserView(TemplateView):
return response.render() return response.render()
class ContactView(FormView):
"""Contact form view."""
template_name = 'portal/contact.html'
form_class = ContactForm
def form_valid(self, form):
# This method is called when valid form data has been POSTed.
# It should return an HttpResponse.
if form.send_email():
return redirect('contact-us-success')
else:
return redirect('error')
#################### ####################
# Helper functions # # Helper functions #
#################### ####################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment