From 2f0816639f9477f062fdc4e381954cc5a059bf54 Mon Sep 17 00:00:00 2001 From: Davide Allavena Date: Mon, 31 May 2021 13:30:43 +0200 Subject: [PATCH] isort fix --- backend/api/views/__init__.py | 4 ++-- backend/api/views/relation_types.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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