Deactivates a specified user. Returns `True` if a change was made.

        :param user: The user to deactivate

def deactivate_user(self, user):
        """Deactivates a specified user. Returns `True` if a change was made.

        :param user: The user to deactivate
        """
        if user.active:
            user.active = False
            return True
        return False