diff --git a/files/views.py b/files/views.py index ea24c9b..eb8657c 100644 --- a/files/views.py +++ b/files/views.py @@ -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) diff --git a/uploader/fineuploader.py b/uploader/fineuploader.py index 716c4b1..529c34e 100644 --- a/uploader/fineuploader.py +++ b/uploader/fineuploader.py @@ -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