X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/f1defc59ca7a7b15e17e8a59c72a726ae937d8e5..46b868a3f5ffa8f693808cb832306286802124f4:/forum/views/meta.py diff --git a/forum/views/meta.py b/forum/views/meta.py index f4f1a80..c9548e5 100644 --- a/forum/views/meta.py +++ b/forum/views/meta.py @@ -91,7 +91,7 @@ def badges(request): badges = sorted([Badge.objects.get(id=id) for id in BadgesMeta.by_id.keys()], lambda b1, b2: cmp(b1.name, b2.name)) if request.user.is_authenticated(): - my_badges = Award.objects.filter(user=request.user).values('badge_id').distinct() + my_badges = Award.objects.filter(user=request.user).values_list('badge_id', flat=True).distinct() else: my_badges = []