X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/08948f69c835e27c0f90dea93d71901a5a62b0f5..5737916435bfeaec27dfd64af918bd8c7ae6ac0f:/forum/views/meta.py?ds=sidebyside diff --git a/forum/views/meta.py b/forum/views/meta.py index a0c5ced..436676d 100644 --- a/forum/views/meta.py +++ b/forum/views/meta.py @@ -88,7 +88,7 @@ def logout(request): @decorators.render('badges.html', 'badges', _('badges'), weight=300) def badges(request): - badges = [b.ondb for b in sorted(BadgesMeta.by_id.values(), lambda b1, b2: cmp(b1.name, b2.name))] + 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()