better ordering on list view

This commit is contained in:
Tobias Brunner 2025-02-26 10:39:23 +01:00
parent efc5fefeb4
commit 67824483cb
No known key found for this signature in database
4 changed files with 21 additions and 12 deletions

View file

@ -7,8 +7,10 @@ from hub.services.models import (
def provider_list(request):
providers = CloudProvider.objects.all().prefetch_related(
"offerings", "consulting_partners"
providers = (
CloudProvider.objects.all()
.order_by("name")
.prefetch_related("offerings", "consulting_partners")
)
# Handle search