diff options
author | hrcerqueira <hrcerqueira@gmail.com> | 2010-02-22 14:34:10 +0000 |
---|---|---|
committer | hrcerqueira <hrcerqueira@gmail.com> | 2010-02-22 14:34:10 +0000 |
commit | c98f611472b65e8be5943fb6e9f134c21d9a0665 (patch) | |
tree | 107e6d3b0f4f236d794e194e7d9074bbff34aadf /forum/views/meta.py | |
parent | 2ea80d9c8d6c9e6ace51c59ebfc194b59bb0480a (diff) | |
download | askbot-c98f611472b65e8be5943fb6e9f134c21d9a0665.tar.gz askbot-c98f611472b65e8be5943fb6e9f134c21d9a0665.tar.bz2 askbot-c98f611472b65e8be5943fb6e9f134c21d9a0665.zip |
"Reversed" some m2m relations with the user model.
Fixed and improved most of modules functionality.
Definitevly moved books to a separate module.
Fixed some missing imports in views.
Adapted some of the interface changes Rick did on robofaqs to osqa.
Diffstat (limited to 'forum/views/meta.py')
-rw-r--r-- | forum/views/meta.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forum/views/meta.py b/forum/views/meta.py index 164c056a..b4c7a37f 100644 --- a/forum/views/meta.py +++ b/forum/views/meta.py @@ -61,8 +61,8 @@ def badges(request):#user status/reputation system badges = Badge.objects.all().order_by('type') my_badges = [] if request.user.is_authenticated(): - my_badges = Award.objects.filter(user=request.user) - my_badges.query.group_by = ['badge_id'] + my_badges = Award.objects.filter(user=request.user).values('badge_id') + #my_badges.query.group_by = ['badge_id'] return render_to_response('badges.html', { 'badges' : badges, |