Commit 3ef0798e by Bodor Máté

Fix flake8 error

parent 65508250
Pipeline #794 failed with stages
in 59 seconds
# from django.shortcuts import render
from rest_framework.viewsets import ViewSet
from rest_framework.response import Response
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from rest_framework import status
from django.core.exceptions import ObjectDoesNotExist
......@@ -43,7 +42,6 @@ class ImageViewSet(ViewSet):
serializer = ImageSerializer(instance=image)
return Response(serializer.data)
def update(self, request, pk=None):
serializer = ImageUpdateSerializer(data=request.data)
serializer.is_valid(raise_exception=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment