'POST /api/user/v1/accounts/{username}/deactivate/
Marks the user as having no password set for deactivation purposes.'

def post(self, request, username):

    user = User.objects.get(username=username)
    user.set_unusable_password()
    user.save()
    account_settings = get_account_settings(request, [username])[0]
    return Response(account_settings)
