Skip to content

Commit

Permalink
Public rad-only logo endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Dec 9, 2023
1 parent f4ecfce commit 01927c3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,10 @@ def visible(self, request):
return Response(serializer.data)


class LogoViewSet(viewsets.ModelViewSet):
class LogoViewSet(viewsets.ReadOnlyModelViewSet):
"""Logá"""
queryset = Logo.objects.all()
serializer_class = LogoSerializer
permission_classes = (PostPermission,)

# TODO: Maybe create upload image endpoint

def create(self, request, *args, **kwargs):
raise MethodNotAllowed('POST')


class InfoBannerViewSet(viewsets.ModelViewSet):
Expand Down

0 comments on commit 01927c3

Please sign in to comment.