Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: cast custom fields values list to list for other DB types

shamoon7a0334f35384
diff --git a/src/documents/views.py b/src/documents/views.py
index 8e58d9019..d220d1aaa 100644
--- a/src/documents/views.py
+++ b/src/documents/views.py
@@ -766,7 +766,7 @@ class DocumentViewSet(
# custom fields
for entry in LogEntry.objects.filter(
- object_pk__in=doc.custom_fields.values_list("id", flat=True),
+ object_pk__in=list(doc.custom_fields.values_list("id", flat=True)),
content_type=ContentType.objects.get_for_model(CustomFieldInstance),
).select_related("actor"):
entries.append(