mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Merge branch 'dev' into feature-frontend-task-queue
This commit is contained in:
commit
92dd70098c
63 changed files with 6726 additions and 10068 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue