本文整理汇总了Python中accounts.models.Account.source_industry方法的典型用法代码示例。如果您正苦于以下问题:Python Account.source_industry方法的具体用法?Python Account.source_industry怎么用?Python Account.source_industry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类accounts.models.Account
的用法示例。
在下文中一共展示了Account.source_industry方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _saveSfdcNewAccount
# 需要导入模块: from accounts.models import Account [as 别名]
# 或者: from accounts.models.Account import source_industry [as 别名]
def _saveSfdcNewAccount(sfdc_id, newAccount, relatedLeadList, company_id):
account = Account()
account.sfdc_id = sfdc_id
account.source_name = newAccount['Name']
account.source_source = newAccount['AccountSource']
account.source_industry = newAccount['Industry']
account.source_created_date = newAccount['CreatedDate']
account.accounts = {}
account.accounts["sfdc"] = newAccount
if relatedLeadList is not None:
account.leads = relatedLeadList
account.company_id = company_id
account.opportunities = {}
account.save()
return account