#NEWLINE# @ classmethod #NEWLINE# def get_for_model( cls , instance ) : #NEWLINE# #INDENT# 'Get deployment graphs related to given model.\n\n        :param instance: model that could have relation to graph\n        :type instance: models.Plugin|models.Cluster|models.Release|\n        :return: graph instance\n        :rtype: model.DeploymentGraph\n        ' #NEWLINE# association_model = cls . single . get_association_for_model ( graphs ) #NEWLINE# graphs = db . query ( models . DeploymentGraph ) . join ( association_model ) . join ( instance . __class__ ) . filter ( ( instance . __class__ . id == instance . id ) ) #NEWLINE# return graphs . all ( )