]> git.openstreetmap.org Git - osqa.git/commitdiff
changing the awarded tool user message, it used to cause trouble when running the...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sat, 9 Apr 2011 16:55:31 +0000 (16:55 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sat, 9 Apr 2011 16:55:31 +0000 (16:55 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@949 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/commands.py

index 4aa96f8a1f9cadbd8363c36c25672aa147960417..3849ca3d82c45a374c5e806891f7efb5e5368c0d 100644 (file)
@@ -588,4 +588,4 @@ def award_points(request, user_id, answer_id):
         # We take points from the awarding user
         AwardPointsAction(user=request.user, node=answer, extra=extra).save(data=dict(value=points, affected=awarded_user))
 
-        return { 'message' : _("You have awarded %s with %d points") % (awarded_user, points) }
+        return { 'message' : _("You have awarded %(awarded_user)s with %(points)d points") % {'awarded_user' : awarded_user, 'points' : points} }