extra = dict(message=request.POST.get('message', ''), awarding_user=request.user.id, value=points)
# We take points from the awarding user
- AwardPointsAction(user=request.user, extra=extra).save(data=dict(value=-points, affected=user))
-
- # And give them to the awarded one
- AwardPointsAction(user=request.user, extra=extra).save(data=dict(value=points, affected=awarded_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) }