From c58374ea2eabbe777ba53f8171f46e9fe05257ac Mon Sep 17 00:00:00 2001 From: "Ing. Jan KRCMAR" Date: Fri, 27 Apr 2018 14:12:56 +0200 Subject: [PATCH] instance view order Computes by name --- instances/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index 8e1d90b..cd8143e 100644 --- a/instances/views.py +++ b/instances/views.py @@ -182,7 +182,7 @@ def instance(request, compute_id, vname): error_messages = [] messages = [] compute = get_object_or_404(Compute, pk=compute_id) - computes = Compute.objects.all() + computes = Compute.objects.all().order_by('name') computes_count = computes.count() users = User.objects.all().order_by('username') publickeys = UserSSHKey.objects.filter(user_id=request.user.id)