[extensions-web] Fix profile_edit view
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Fix profile_edit view
- Date: Mon, 7 Nov 2011 22:30:49 +0000 (UTC)
commit 2e54681cca46af3d373b506864c84bb1a8670ee9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Nov 7 17:28:03 2011 -0500
Fix profile_edit view
.../auth/templates/registration/profile_edit.html | 2 +-
sweettooth/auth/views.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/auth/templates/registration/profile_edit.html b/sweettooth/auth/templates/registration/profile_edit.html
index 4da2891..e1fce22 100644
--- a/sweettooth/auth/templates/registration/profile_edit.html
+++ b/sweettooth/auth/templates/registration/profile_edit.html
@@ -1 +1 @@
-{% extends "auth/profile.html" %}
+{% extends "registration/profile.html" %}
diff --git a/sweettooth/auth/views.py b/sweettooth/auth/views.py
index 2d03c33..1e26fb8 100644
--- a/sweettooth/auth/views.py
+++ b/sweettooth/auth/views.py
@@ -12,7 +12,7 @@ def profile(request, user):
userobj = get_object_or_404(models.User, username=user)
template = 'registration/profile.html'
- if request.user == user:
+ if request.user == userobj:
template = 'registration/profile_edit.html'
display_name = userobj.get_full_name() or userobj.username
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]