mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-04 05:49:23 +00:00
Merge branch 'dev' into feature/ocr-templates
This commit is contained in:
31 files changed
+1114
-348
No files matched your search
@@ -504,6 +504,11 @@ class BulkPermissionMixin:
|
||||
"""
|
||||
context = super().get_serializer_context()
|
||||
|
||||
if getattr(self, "swagger_fake_view", False):
|
||||
# Schema generation only needs the serializer shape; without a
|
||||
# paginated page we'd otherwise scan the entire queryset below.
|
||||
return context
|
||||
|
||||
if getattr(self, "action", None) != "list":
|
||||
# Batching only pays off across a page of objects; for single-object
|
||||
# actions (retrieve, update, ...) the per-object fallback in
|
||||
|
||||
Reference in new issue
Block a user