def create_customer_id(self): if not self.customer_id: customer = create_customer(self) self.customer_id = customer.id self.save() return self.customer_id
def create_customer_id(self): if not self.has_customer(): customer = create_customer(self) self.customer_id = customer.id self.save()
def create_customer_id(self): #Si el customer_id no esta creado, con esta funciĆ³n lo hacemos. if not self.has_customer(): customer = create_customer(self) self.customer_id = customer.id self.save()