1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

account create_user_instance form sorts instances by name

This commit is contained in:
Jan Krcmar 2016-03-21 10:24:09 +01:00
parent 2aa81ccecb
commit 9832e662a8

View file

@ -138,7 +138,7 @@ def account(request, user_id):
error_messages = []
user = User.objects.get(id=user_id)
user_insts = UserInstance.objects.filter(user_id=user_id)
instances = Instance.objects.all()
instances = Instance.objects.all().order_by('name')
if user.username == request.user.username:
return HttpResponseRedirect(reverse('profile'))