black formatting

This commit is contained in:
Markos Gogoulos 2024-10-02 12:53:48 +03:00
parent 5fe4d3a9fc
commit 0151e834a1
2 changed files with 2 additions and 3 deletions

View File

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

View File

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