Exemplo n.º 1
0
 def get_bu(domain):
     if domain.internal.business_unit:
         return domain.internal.business_unit
     elif domain.deployment.countries:
         return BU_MAPPING.get(domain.deployment.countries[0], NO_BU)
     else:
         return NO_BU
Exemplo n.º 2
0
 def get_bu(domain):
     if domain.internal.business_unit:
         return domain.internal.business_unit
     elif domain.deployment.countries:
         return BU_MAPPING.get(domain.deployment.countries[0], NO_BU)
     else:
         return NO_BU