Commit 80794b1c authored by Zosman's avatar Zosman

fixed a bug in the useradmin page

parent 647dc5ec
Pipeline #679 passed with stage
in 1 minute and 25 seconds
......@@ -433,9 +433,9 @@ def useradmin(request):
)
toRemove.user.delete()
return HttpResponseRedirect('useradmin')
# Get a list of all RegisteredUsers that need to be approved
need_approval = RegisteredUser.objects.filter(registered=True).filter(approved=False)
need_approval = RegisteredUser.objects.filter(registered=True).filter(approved=False).filter(blocked=False)
current_users = RegisteredUser.objects.filter(approved=True).filter(registered=True).filter(blocked=False)
blocked_users = RegisteredUser.objects.filter(blocked=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment