summaryrefslogtreecommitdiffstats
path: root/forum/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/views.py')
-rw-r--r--forum/views.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/forum/views.py b/forum/views.py
index 16a5a32d..10438982 100644
--- a/forum/views.py
+++ b/forum/views.py
@@ -1189,12 +1189,8 @@ def user_stats(request, user_id, user_view):
params=[user.id]
).values('id', 'name', 'description', 'type')
total_awards = awards.count()
- #fixed to work with Django version < 1.1
- try:
- from django.db.models import Count
- awards = awards.annotate(count = Count('badge__id'))
- except:
- pass
+ from django.db.models import Count
+ awards = awards.annotate(count = Count('badge__id'))
return render_to_response(user_view.template_file,{
"tab_name" : user_view.id,