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

accounts/views: do not redirect to profile, if user wants to see self

This commit is contained in:
Ing. Jan KRCMAR 2017-06-06 15:07:02 +02:00
parent c5f86358be
commit 3e709cd253

View file

@ -146,9 +146,6 @@ def account(request, user_id):
user_insts = UserInstance.objects.filter(user_id=user_id)
instances = Instance.objects.all().order_by('name')
if user.username == request.user.username:
return HttpResponseRedirect(reverse('profile'))
if request.method == 'POST':
if 'delete' in request.POST:
user_inst = request.POST.get('user_inst', '')