Removed unused link var.
This commit is contained in:
parent
406a2d18e3
commit
9b6640c2ae
@ -211,7 +211,6 @@ def user_set_status(request, user_id):
|
|||||||
return redirect(reverse('user_overview'))
|
return redirect(reverse('user_overview'))
|
||||||
|
|
||||||
if request.is_ajax():
|
if request.is_ajax():
|
||||||
link = reverse('user_status', args=[user.id])
|
|
||||||
return ajax_request({'active': user.is_active})
|
return ajax_request({'active': user.is_active})
|
||||||
# set success messages for page reload only (= not ajax request)
|
# set success messages for page reload only (= not ajax request)
|
||||||
if user.is_active:
|
if user.is_active:
|
||||||
|
Loading…
Reference in New Issue
Block a user