mirror of
https://github.com/retspen/webvirtcloud
synced 2025-01-23 21:55:20 +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 = []
|
error_messages = []
|
||||||
user = User.objects.get(id=user_id)
|
user = User.objects.get(id=user_id)
|
||||||
user_insts = UserInstance.objects.filter(user_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:
|
if user.username == request.user.username:
|
||||||
return HttpResponseRedirect(reverse('profile'))
|
return HttpResponseRedirect(reverse('profile'))
|
||||||
|
|
Loading…
Reference in a new issue