From 3e709cd253c180ae81bbd9374105e4f870e9734b Mon Sep 17 00:00:00 2001 From: "Ing. Jan KRCMAR" Date: Tue, 6 Jun 2017 15:07:02 +0200 Subject: [PATCH] accounts/views: do not redirect to profile, if user wants to see self --- accounts/views.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/accounts/views.py b/accounts/views.py index 568eb6a..4b87b22 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -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', '')