equal
deleted
inserted
replaced
63 return render_to_response('user/my_profile.html', {'edit_profile':edit_profile,'profile':profile}) |
63 return render_to_response('user/my_profile.html', {'edit_profile':edit_profile,'profile':profile}) |
64 |
64 |
65 @login_required |
65 @login_required |
66 def edit_my_profile(request): |
66 def edit_my_profile(request): |
67 """ enables the user to edit his/her user profile """ |
67 """ enables the user to edit his/her user profile """ |
68 if str(request.user) == 'AnonymousUser': |
|
69 return show_msg('Please register yourself to activate the functionality') |
|
70 if request.method == 'POST': |
68 if request.method == 'POST': |
71 form = UserProfileEditForm(request.POST) |
69 form = UserProfileEditForm(request.POST) |
72 # if not form.is_valid(): |
70 # if not form.is_valid(): |
73 # edit_profile_form = UserProfileEditForm(instance = form) |
71 # edit_profile_form = UserProfileEditForm(instance = form) |
74 # return render_to_response('user/edit_profile.html',{'edit_profile_form' : edit_profile_form}) |
72 # return render_to_response('user/edit_profile.html',{'edit_profile_form' : edit_profile_form}) |