diff --git a/backend/api/views/__init__.py b/backend/api/views/__init__.py index 91cf9f17..7b3c32fc 100644 --- a/backend/api/views/__init__.py +++ b/backend/api/views/__init__.py @@ -1,4 +1,5 @@ from .annotation import * +from .annotation_relations import * from .auto_labeling import * from .comment import * from .example import * @@ -8,10 +9,9 @@ from .import_dataset import * from .import_export import * from .label import * from .project import * +from .relation_types import * from .role import * from .statistics import * from .tag import * from .task import * from .user import * -from .relation_types import * -from .annotation_relations import * diff --git a/backend/api/views/relation_types.py b/backend/api/views/relation_types.py index 6e29c0a3..9ecc5393 100644 --- a/backend/api/views/relation_types.py +++ b/backend/api/views/relation_types.py @@ -10,7 +10,7 @@ from rest_framework.response import Response from rest_framework.views import APIView from ..exceptions import RelationTypesValidationError -from ..models import RelationTypes, Project +from ..models import Project, RelationTypes from ..permissions import IsInProjectReadOnlyOrAdmin, IsProjectAdmin from ..serializers import RelationTypesSerializer