diff options
author | Adolfo Fitoria <fitoria@fitoria-laptop.(none)> | 2009-08-09 17:35:31 -0600 |
---|---|---|
committer | Adolfo Fitoria <fitoria@fitoria-laptop.(none)> | 2009-08-09 17:35:31 -0600 |
commit | 56202f708e0433e6dadf17a1657f1d3cd7cb2879 (patch) | |
tree | 60027c3f8a6000fc6106fa8f4b3f7c822b842966 /forum | |
parent | a8249b16eca93e0996f7ce9455805038fcd6bcf7 (diff) | |
download | askbot-56202f708e0433e6dadf17a1657f1d3cd7cb2879.tar.gz askbot-56202f708e0433e6dadf17a1657f1d3cd7cb2879.tar.bz2 askbot-56202f708e0433e6dadf17a1657f1d3cd7cb2879.zip |
fixing python2.4 compat in views
Diffstat (limited to 'forum')
-rw-r--r-- | forum/views.py | 7 |
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 |