Skip to content

Commit

Permalink
Remove unused imports and fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Dec 19, 2023
1 parent 0c94acc commit 1242bd0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions api/cedar_metadata_templates/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@
from rest_framework import permissions as drf_permissions
from rest_framework.exceptions import NotFound

from api.base import permissions as base_permissions
from api.base.filters import ListFilterMixin
# from api.base.parsers import (
# JSONAPIMultipleRelationshipsParser,
# JSONAPIMultipleRelationshipsParserForRegularJSON,
# )
from api.base.versioning import PrivateVersioning
from api.base.views import JSONAPIBaseView
from api.base import permissions as base_permissions
# from api.base.utils import get_user_auth
from api.cedar_metadata_templates.serializers import CedarMetadataTemplateSerializer
from framework.auth.oauth_scopes import CoreScopes
from osf.models import CedarMetadataTemplate


class CedarMetadataTemplateList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin):

permission_classes = (
drf_permissions.IsAuthenticatedOrReadOnly,
base_permissions.TokenHasScope,
Expand All @@ -40,7 +36,9 @@ def get_default_queryset(self):
def get_queryset(self):
return self.get_queryset_from_request()


class CedarMetadataTemplateDetail(JSONAPIBaseView, generics.RetrieveAPIView):

permission_classes = (
drf_permissions.IsAuthenticatedOrReadOnly,
base_permissions.TokenHasScope,
Expand Down

0 comments on commit 1242bd0

Please sign in to comment.