black formatting

pull/963/merge
Markos Gogoulos 2024-10-02 12:53:48 +03:00
rodzic 5fe4d3a9fc
commit 0151e834a1
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -602,10 +602,10 @@ class MediaDetail(APIView):
if serializer.is_valid():
serializer.save(user=request.user)
# no need to update the media file itself, only the metadata
#if request.data.get('media_file'):
# if request.data.get('media_file'):
# media_file = request.data["media_file"]
# serializer.save(user=request.user, media_file=media_file)
#else:
# else:
# serializer.save(user=request.user)
return Response(serializer.data, status=status.HTTP_201_CREATED)
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

Wyświetl plik

@ -34,7 +34,6 @@ class BaseFineUploader(object):
self.storage_class = settings.FILE_STORAGE
self.real_path = None
@property
def finished(self):
return self.real_path is not None