def METHOD_NAME(cls, deployment_id):
    deployment = cls.objects.get(id=deployment_id)
    if deployment.is_frozen:
        deployment.unfreeze()
    else:
        logger.warning(
            'Deployment %s was already unfrozen', deployment
        )