Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mgogoulos committed Oct 2, 2024
1 parent 5fe4d3a commit 0151e83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions files/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,10 @@ def put(self, request, friendly_token, format=None):
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)
Expand Down
1 change: 0 additions & 1 deletion uploader/fineuploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def __init__(self, data, *args, **kwargs):
self.storage_class = settings.FILE_STORAGE
self.real_path = None


@property
def finished(self):
return self.real_path is not None
Expand Down

0 comments on commit 0151e83

Please sign in to comment.