def METHOD_NAME(self, username, password, client, request, *args, **kwargs):
    """
    Authenticate users, but allow inactive users (with u.is_active == False)
    to authenticate.
    """
    user = self._authenticate(username=username, password=password)
    if user is not None:
        request.user = user
        return True
    return False