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'