Skip to content

Commit

Permalink
Deleted trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamín Mravec committed Nov 11, 2023
1 parent 812707b commit 7e24780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def upload_logo(self, request):
file = request.data['file']
if mime_type(file) not in ['application/jpg', 'application/png']:
raise exceptions.ParseError(detail='Nesprávny formát')

default_storage.save(file.name, ContentFile(file.read()))

return Response(status=status.HTTP_201_CREATED)
Expand Down

0 comments on commit 7e24780

Please sign in to comment.