Merge branch 'dev' into feature-frontend-task-queue

This commit is contained in:
shamoon 2022-07-02 16:54:16 -07:00 committed by GitHub
commit 92dd70098c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
63 changed files with 6726 additions and 10068 deletions

View file

@ -366,7 +366,8 @@ class DocumentViewSet(
handle = doc.thumbnail_file
# TODO: Send ETag information and use that to send new thumbnails
# if available
return HttpResponse(handle, content_type="image/png")
return HttpResponse(handle, content_type="image/webp")
except (FileNotFoundError, Document.DoesNotExist):
raise Http404()
@ -749,7 +750,7 @@ class RemoteVersionView(GenericAPIView):
class StoragePathViewSet(ModelViewSet):
model = DocumentType
model = StoragePath
queryset = StoragePath.objects.annotate(document_count=Count("documents")).order_by(
Lower("name"),