diff --git a/cms/views.py b/cms/views.py index e9e050bc..a4cf454b 100644 --- a/cms/views.py +++ b/cms/views.py @@ -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)