def model_is_projection(model_instance):
 return (model_instance._entity and model_instance._entity.is_projection())

def model_is_projection ( model_instance ) : return ( model_instance . _entity and model_instance . _entity . is_projection ( ) )
returns true if the given db .