Browse Source

Fix lint

pull/1224/head
Hironsan 3 years ago
parent
commit
57d85e5f79
3 changed files with 4 additions and 3 deletions
  1. 3
      app/api/models.py
  2. 2
      app/api/views/role.py
  3. 2
      app/api/views/user.py

3
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'

2
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

2
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

Loading…
Cancel
Save