summaryrefslogtreecommitdiff
path: root/forums/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'forums/views.py')
-rw-r--r--forums/views.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/forums/views.py b/forums/views.py
index ebb44ca..ffa4984 100644
--- a/forums/views.py
+++ b/forums/views.py
@@ -133,12 +133,20 @@ def account_profile(request, username):
def account_view_profile(request, username):
user = User.objects.get(username = username)
- profile = Profile.objects.filter(user = user)[0]
+ profile = Profile.objects.filter(user = user)
+ prof = None
+ if profile:
+ prof = profile[0]
+
+ print "profile"
+ print profile
context = {
'profile' : profile,
'media_url' : settings.MEDIA_URL,
}
return render(request, 'forums/templates/view-profile.html', context)
+
+
def send_registration_confirmation(user):