def postprocess(self, obj):
        for deployment_name in self.get_requirements("tosca.relationships.SupportsDeployment"):
            deployment = self.get_xos_object(Deployment, deployment_name)
            if not obj.deployments.all() in deployment:
                print "attaching dashboardview %s to deployment %s" % (obj, deployment)
                obj.deployments.add(deployment)
                obj.save()
dataset/ETHPy150Open open-cloud/xos/xos/tosca/resources/dashboardview.py/XOSDashboardView.postprocess/swapped operands of `in`