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:
parent
2aa81ccecb
commit
9832e662a8
1 changed files with 1 additions and 1 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue