]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/meta.py
be able to pass additional context to the _edit_question view
[osqa.git] / forum / views / meta.py
index f4f1a80121c84e8091034ac53bc9ac8303b2246c..c9548e58d46e34d6af9780503e59de1577b70797 100644 (file)
@@ -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 = []