From 57d85e5f790dcbc6365ce23616c86bdcb59fc51e Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 1 Mar 2021 14:55:07 +0900 Subject: [PATCH] Fix lint --- app/api/models.py | 3 ++- app/api/views/role.py | 2 +- app/api/views/user.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/api/models.py b/app/api/models.py index 2eafe2c0..28000a88 100644 --- a/app/api/models.py +++ b/app/api/models.py @@ -10,7 +10,8 @@ from django.dispatch import receiver from django.urls import reverse from polymorphic.models import PolymorphicModel -from .managers import AnnotationManager, Seq2seqAnnotationManager, RoleMappingManager +from .managers import (AnnotationManager, RoleMappingManager, + Seq2seqAnnotationManager) DOCUMENT_CLASSIFICATION = 'DocumentClassification' SEQUENCE_LABELING = 'SequenceLabeling' diff --git a/app/api/views/role.py b/app/api/views/role.py index bffd9207..fa32a5f2 100644 --- a/app/api/views/role.py +++ b/app/api/views/role.py @@ -4,7 +4,7 @@ from rest_framework import generics, status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response -from ..exceptions import RoleConstraintException, RoleAlreadyAssignedException +from ..exceptions import RoleAlreadyAssignedException, RoleConstraintException from ..models import Project, Role, RoleMapping from ..permissions import IsProjectAdmin from ..serializers import RoleMappingSerializer, RoleSerializer diff --git a/app/api/views/user.py b/app/api/views/user.py index 9767a007..a8379c74 100644 --- a/app/api/views/user.py +++ b/app/api/views/user.py @@ -1,6 +1,6 @@ from django.contrib.auth.models import User from django_filters.rest_framework import DjangoFilterBackend -from rest_framework import generics, filters +from rest_framework import filters, generics from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView