From b8326c53885d3f01079604b4e40c44a4d4f2317c Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 17 Jul 2012 19:53:59 +0530 Subject: [PATCH] views.py to get real user --- itf/itfprofiles/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itf/itfprofiles/views.py b/itf/itfprofiles/views.py index a2e7c73..de0b1c5 100644 --- a/itf/itfprofiles/views.py +++ b/itf/itfprofiles/views.py @@ -21,8 +21,8 @@ def person_form(request): @login_required def edit_profile(request): user = request.user - #person = Person.objects.get(user=user) - person = Person.objects.all()[0] + person = Person.objects.get(user=user) + #person = Person.objects.all()[0] if request.POST: form = PersonForm(request.POST, request.FILES, instance=person) if form.is_valid():