mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Fix the limit clause on the admin list
This commit is contained in:
@@ -179,7 +179,7 @@ def admin_applications(request):
|
|||||||
apps = apps.order_by(order)
|
apps = apps.order_by(order)
|
||||||
|
|
||||||
if 'l' in request.GET:
|
if 'l' in request.GET:
|
||||||
limit = request.get['l']
|
limit = request.GET['l']
|
||||||
apps = apps[:limit]
|
apps = apps[:limit]
|
||||||
|
|
||||||
return render_to_response('hr/applications/admin/view_list.html', locals(), context_instance=RequestContext(request))
|
return render_to_response('hr/applications/admin/view_list.html', locals(), context_instance=RequestContext(request))
|
||||||
|
|||||||
Reference in New Issue
Block a user