We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a914329 commit 06738caCopy full SHA for 06738ca
1 file changed
landolfio/inventory_frontend/views.py
@@ -49,7 +49,7 @@ def get_context_data(self, **kwargs):
49
# Get categories with counts
50
context["categories"] = Category.objects.annotate(
51
asset_count=Count("asset")
52
- ).order_by("-asset_count")[:5]
+ ).order_by("-asset_count")
53
54
# Get locations with counts
55
context["locations"] = Location.objects.annotate(
0 commit comments