mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 00:03:28 +01:00
black formatting
This commit is contained in:
parent
5fe4d3a9fc
commit
0151e834a1
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user