Skip to content

Commit

Permalink
fixing views so that they're properly formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
jkachel committed Feb 28, 2024
1 parent c7ba87b commit 2917409
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions system_meta/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import json
import logging

from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import status
from rest_framework import status, viewsets
from rest_framework.decorators import (
api_view,
authentication_classes,
Expand All @@ -18,19 +17,14 @@

from system_meta.models import IntegratedSystem, Product
from system_meta.serializers import IntegratedSystemSerializer, ProductSerializer


class IntegratedSystemViewSet(viewsets.ModelViewSet):
from unified_ecommerce.authentication import (
ApiGatewayAuthentication,
)
from unified_ecommerce.permissions import (
IsAdminUserOrReadOnly,
)
from unified_ecommerce.viewsets import AuthVariegatedModelViewSet

log = logging.getLogger(__name__)


class IntegratedSystemViewSet(viewsets.ModelViewSet):
"""Viewset for IntegratedSystem model."""

queryset = IntegratedSystem.objects.all()
Expand All @@ -44,6 +38,8 @@ class ProductViewSet(viewsets.ModelViewSet):
queryset = Product.objects.all()
serializer_class = ProductSerializer
permission_classes = (IsAuthenticated,)


@api_view(["GET"])
@authentication_classes(
[
Expand Down

0 comments on commit 2917409

Please sign in to comment.