Fix: exclude versions from stats count (#12738)

This commit is contained in:
shamoon authored and GitHub committed 2026-05-07 16:34:26 +00:00
1 parent f985f7db51
commit 3097f06189
2 files changed
+30 -1

No files matched your search

+1 -1
View File
@@ -3614,7 +3614,7 @@ class StatisticsView(GenericAPIView[Any]):
"documents.view_document",
Document,
)
)
).filter(root_document__isnull=True)
tags = (
Tag.objects.all()
if can_view_global_stats