1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

instance view order Computes by name

This commit is contained in:
Ing. Jan KRCMAR 2018-04-27 14:12:56 +02:00
parent 40049540ee
commit c58374ea2e

View file

@ -182,7 +182,7 @@ def instance(request, compute_id, vname):
error_messages = [] error_messages = []
messages = [] messages = []
compute = get_object_or_404(Compute, pk=compute_id) compute = get_object_or_404(Compute, pk=compute_id)
computes = Compute.objects.all() computes = Compute.objects.all().order_by('name')
computes_count = computes.count() computes_count = computes.count()
users = User.objects.all().order_by('username') users = User.objects.all().order_by('username')
publickeys = UserSSHKey.objects.filter(user_id=request.user.id) publickeys = UserSSHKey.objects.filter(user_id=request.user.id)