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