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

Fixed refer from logs to accouts admin

This commit is contained in:
Retspen 2015-03-26 16:03:12 +02:00
parent 3054181e83
commit 6604aa9d11

View file

@ -121,6 +121,9 @@ def account(request, 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()
if user.username == request.user.username:
return HttpResponseRedirect(reverse('profile'))
if request.method == 'POST': if request.method == 'POST':
if 'delete' in request.POST: if 'delete' in request.POST:
user_inst = request.POST.get('user_inst', '') user_inst = request.POST.get('user_inst', '')