From 01927c388610001d5af77e639bcc62012e62514c Mon Sep 17 00:00:00 2001 From: kovacspe Date: Sat, 9 Dec 2023 22:16:09 +0100 Subject: [PATCH] Public rad-only logo endpoint --- cms/views.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cms/views.py b/cms/views.py index 31794491..1321fddd 100644 --- a/cms/views.py +++ b/cms/views.py @@ -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):