Commit c641e707 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Order results by state

parent a70c590b
......@@ -19,8 +19,8 @@ def account(request, account):
"""
Account details view
"""
vms = VirtualMachine.objects.all()
networks = Network.objects.all()
vms = VirtualMachine.objects.filter().order_by('deleted')
networks = Network.objects.filter().order_by('state')
user_context = {
'vms': vms,
'account': account,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment