better ordering on list view
This commit is contained in:
parent
efc5fefeb4
commit
67824483cb
4 changed files with 21 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue