Mercurial > public > sg101
diff bio/views.py @ 766:22d158ef2217
More bio unit tests.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Jan 2014 21:26:42 -0600 |
parents | ee87ea74d46b |
children | cd3343abca9d |
line wrap: on
line diff
--- a/bio/views.py Sun Jan 19 17:23:07 2014 -0600 +++ b/bio/views.py Sun Jan 19 21:26:42 2014 -0600 @@ -95,7 +95,7 @@ user = get_object_or_404(User, username=username) if user == request.user: - return HttpResponseRedirect(reverse('bio.views.my_profile')) + return HttpResponseRedirect(reverse('bio-me')) profile = user.get_profile() hide_email = profile.hide_email @@ -118,7 +118,7 @@ def edit_profile(request): if request.method == 'POST': if request.POST.get('submit_button', 'Cancel') == 'Cancel': - return HttpResponseRedirect(reverse('bio.views.my_profile')) + return HttpResponseRedirect(reverse('bio-me')) profile = request.user.get_profile() user_form = EditUserForm(request.POST, instance=request.user) profile_form = EditUserProfileForm(request.POST, instance=profile) @@ -127,7 +127,7 @@ profile = profile_form.save(commit=False) profile.user = request.user profile.save() - return HttpResponseRedirect(reverse('bio.views.my_profile')) + return HttpResponseRedirect(reverse('bio-me')) else: profile = request.user.get_profile() user_form = EditUserForm(instance=request.user)