})\r
\r
\r
-def edit_user(request, id):\r
+def edit_user(request, id, slug):\r
user = get_object_or_404(User, id=id)\r
if not (request.user.is_superuser or request.user == user):\r
return HttpResponseUnauthorized(request)\r
return render_to_response('users/suspend_user.html')\r
\r
data = {\r
- 'bantype': request.POST.get('bantype', 'indefinetly').strip(),\r
+ 'bantype': request.POST.get('bantype', 'Indefinitely').strip(),\r
'publicmsg': request.POST.get('publicmsg', _('Bad behaviour')),\r
'privatemsg': request.POST.get('privatemsg', None) or request.POST.get('publicmsg', ''),\r
'suspended': user\r
redux = lambda x, y: x+y\r
\r
graph_data = simplejson.dumps([\r
- (time.mktime(rep[i].date.timetuple()) * 1000, reduce(redux, values[:i], 0))\r
+ (time.mktime(rep[i].date.timetuple()) * 1000, reduce(redux, values[:i+1], 0))\r
for i in range(len(values))\r
])\r
\r