diff --git a/arkindex/documents/urls.py b/arkindex/documents/urls.py index 2a25705ea727f72f9e0407b1dd606ae8e6d8ba1d..840d84f8b67572d5cfb50e3b5efa111108c7ff6e 100644 --- a/arkindex/documents/urls.py +++ b/arkindex/documents/urls.py @@ -1,6 +1,5 @@ from django.conf import settings from django.conf.urls import url, include -from arkindex.documents.views import CorpusCreate from arkindex.project.views import FrontendView @@ -10,7 +9,7 @@ urlpatterns = [ url(r'^pages/$', FrontendView.as_view(), name='pages'), url(r'^acts/$', FrontendView.as_view(), name='acts'), - url(r'^corpus/new/$', CorpusCreate.as_view(), name='corpus-create'), + url(r'^corpus/new/$', FrontendView.as_view(), name='corpus-create'), ] if 'debug_toolbar' in settings.INSTALLED_APPS: diff --git a/arkindex/documents/views.py b/arkindex/documents/views.py index 2fbcca56e45750cb213713271b6b390d074b06b4..8ba47bfb819b90ef2bb35bb4fc01c8d20ce3bc65 100644 --- a/arkindex/documents/views.py +++ b/arkindex/documents/views.py @@ -1,19 +1,11 @@ -from django.views.generic import TemplateView, View +from django.views.generic import View from django.views.generic.detail import SingleObjectMixin -from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponse from arkindex.documents.models import Element, ElementType, Act, Page, Corpus import io import csv -class CorpusCreate(LoginRequiredMixin, TemplateView): - """ - Create a new corpus - """ - template_name = 'documents/corpus.create.html' - - class DumpActs(SingleObjectMixin, View): """ Dump acts and linked surfaces data for a given volume in CSV format diff --git a/arkindex/templates/documents/corpus.create.html b/arkindex/templates/documents/corpus.create.html deleted file mode 100644 index af9d471c689c6fa3e1e72f1be9940285c29b88e2..0000000000000000000000000000000000000000 --- a/arkindex/templates/documents/corpus.create.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} -<div id="app"> - <Corpus-Create /> -</div> -{% endblock %}