summaryrefslogtreecommitdiff
path: root/forums/views.py
diff options
context:
space:
mode:
authorholyantony2015-09-24 15:16:50 +0530
committerholyantony2015-09-24 15:16:50 +0530
commitbacee20d83e33674b12cd87ee75d1d14f6810610 (patch)
treeb7a8a58b29f114f76f81fda3b7512ea752127895 /forums/views.py
parentce96f5b782e37c019ee8f69c8067a96e33e6f1a0 (diff)
downloadFOSSEE-Forum-bacee20d83e33674b12cd87ee75d1d14f6810610.tar.gz
FOSSEE-Forum-bacee20d83e33674b12cd87ee75d1d14f6810610.tar.bz2
FOSSEE-Forum-bacee20d83e33674b12cd87ee75d1d14f6810610.zip
Subject: Fixed error if no profile is present
Description: 1. Removed last question and view previous question from slick-list 2. Removed color for user_name 3. Tooltip removed from all table
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):