From 4789ac7e85e3f7bd965707ed3946b0e1f04c73cf Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 8 Aug 2018 15:30:03 +0900 Subject: [PATCH] Rename upload view --- app/server/urls.py | 4 ++-- app/server/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/server/urls.py b/app/server/urls.py index e125134c..cc091597 100644 --- a/app/server/urls.py +++ b/app/server/urls.py @@ -1,7 +1,7 @@ from django.urls import path from .views import IndexView -from .views import ProjectView, DatasetView, DatasetUpload, LabelView, StatsView +from .views import ProjectView, DatasetView, DataUpload, LabelView, StatsView from .views import ProjectsView, DataDownload from rest_framework import routers from .views import ProjectViewSet @@ -24,7 +24,7 @@ urlpatterns = [ path('projects//download', DataDownload.as_view(), name='download'), path('projects//', ProjectView.as_view(), name='annotation'), path('projects//docs/', DatasetView.as_view(), name='dataset'), - path('projects//docs/create', DatasetUpload.as_view(), name='upload'), + path('projects//docs/create', DataUpload.as_view(), name='upload'), path('projects//labels/', LabelView.as_view(), name='label-management'), path('projects//stats/', StatsView.as_view(), name='stats'), ] diff --git a/app/server/views.py b/app/server/views.py index eb9d37a3..91dc8d2b 100644 --- a/app/server/views.py +++ b/app/server/views.py @@ -77,7 +77,7 @@ class StatsView(SuperUserMixin, LoginRequiredMixin, TemplateView): template_name = 'admin/stats.html' -class DatasetUpload(SuperUserMixin, LoginRequiredMixin, TemplateView): +class DataUpload(SuperUserMixin, LoginRequiredMixin, TemplateView): model = Project template_name = 'admin/dataset_upload.html'