'Deactivates a specified user. Returns `True` if a change was made.
:param user: The user to deactivate'

def deactivate_user(self, user):

    if user.active:
        user.active = False
        return True
    return False
