Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
9a5bf810
Commit
9a5bf810
authored
Aug 23, 2021
by
carlosribas
Browse files
Remove ContactView
parent
1d1b8e02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
rnacentral/portal/views.py
rnacentral/portal/views.py
+0
-16
No files found.
rnacentral/portal/views.py
View file @
9a5bf810
...
...
@@ -32,10 +32,8 @@ from django.template import TemplateDoesNotExist
from
django.template.loader
import
render_to_string
from
django.views.decorators.cache
import
cache_page
,
never_cache
from
django.views.generic.base
import
TemplateView
from
django.views.generic.edit
import
FormView
from
portal.config.expert_databases
import
expert_dbs
from
portal.forms
import
ContactForm
from
portal.models
import
Rna
,
Database
,
Xref
,
EnsemblAssembly
from
portal.models.rna_precomputed
import
RnaPrecomputed
from
portal.config.svg_images
import
examples
...
...
@@ -321,20 +319,6 @@ class GenomeBrowserView(TemplateView):
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 #
####################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment