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:
parent
c5f86358be
commit
3e709cd253
1 changed files with 0 additions and 3 deletions
|
@ -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', '')
|
||||
|
|
Loading…
Reference in a new issue