We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e632d74 commit 5ac8432Copy full SHA for 5ac8432
sde_collections/views.py
@@ -71,7 +71,10 @@ def get_queryset(self):
71
super()
72
.get_queryset()
73
.filter(delete=False)
74
- .annotate(num_delta_urls=models.Count("delta_urls"), num_curated_urls=models.Count("curated_urls"))
+ .annotate(
75
+ num_delta_urls=models.Count("delta_urls", distinct=True),
76
+ num_curated_urls=models.Count("curated_urls", distinct=True),
77
+ )
78
.order_by("-num_delta_urls")
79
)
80
0 commit comments