diff --git a/app/api/urls.py b/app/api/urls.py index 667626aa..0681bb16 100644 --- a/app/api/urls.py +++ b/app/api/urls.py @@ -5,12 +5,12 @@ from . import views urlpatterns_project = [ path( route='upload', - view=views.upload.view.UploadAPI.as_view(), + view=views.UploadAPI.as_view(), name='upload' ), path( route='catalog', - view=views.upload.view.DatasetCatalog.as_view(), + view=views.DatasetCatalog.as_view(), name='catalog' ), path( diff --git a/app/api/views/__init__.py b/app/api/views/__init__.py index aee8b53a..323ea786 100644 --- a/app/api/views/__init__.py +++ b/app/api/views/__init__.py @@ -4,11 +4,11 @@ from .comment import * from .document import * from .export_dataset import * from .health import * +from .import_dataset import * from .import_export import * from .label import * from .project import * from .role import * from .statistics import * from .task import * -from .upload import * from .user import * diff --git a/app/api/views/upload/view.py b/app/api/views/import_dataset.py similarity index 91% rename from app/api/views/upload/view.py rename to app/api/views/import_dataset.py index 7b4461df..241ee5fc 100644 --- a/app/api/views/upload/view.py +++ b/app/api/views/import_dataset.py @@ -8,10 +8,10 @@ from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView -from ...models import Project -from ...permissions import IsProjectAdmin -from ...tasks import injest_data -from .catalog import Options +from ..models import Project +from ..permissions import IsProjectAdmin +from ..tasks import injest_data +from .upload.catalog import Options class DatasetCatalog(APIView): diff --git a/app/api/views/upload/__init__.py b/app/api/views/upload/__init__.py index 90cdbd77..8b137891 100644 --- a/app/api/views/upload/__init__.py +++ b/app/api/views/upload/__init__.py @@ -1 +1 @@ -from . import view +