summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--forum/views.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/forum/views.py b/forum/views.py
index 1566e9a8..4dc56946 100644
--- a/forum/views.py
+++ b/forum/views.py
@@ -1169,8 +1169,11 @@ def user_recent(request, user_id, user_view):
self.type_id = type
self.title = title
self.summary = summary
- self.title_link = u'/questions/%s/%s#%s' %(question_id, title, answer_id)\
- if int(answer_id) > 0 else u'/questions/%s/%s' %(question_id, title)
+ if int(answer_id) > 0:
+ self.title_link = u'/questions/%s/%s#%s' %(question_id, title, answer_id)
+ else:
+ self.title_link = u'/questions/%s/%s' %(question_id, title)
+
class AwardEvent:
def __init__(self, time, type, id):
self.time = time