Skip to content

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

Change: sort custom fields alphabetically by default (#12358)

shamoon2bb4af2be673
diff --git a/src/documents/views.py b/src/documents/views.py
index a69293ee9..6f9caa987 100644
--- a/src/documents/views.py
+++ b/src/documents/views.py
@@ -3923,7 +3923,7 @@ class CustomFieldViewSet(PermissionsAwareDocumentCountMixin, ModelViewSet):
document_count_through = CustomFieldInstance
document_count_source_field = "field_id"
- queryset = CustomField.objects.all().order_by("-created")
+ queryset = CustomField.objects.all().order_by("name")
@extend_schema_view(