def make_product(domain, name, code): p = Product() p.domain = domain p.name = name p.code = code.lower() p.save() return p
def make_product(domain, name, code, program_id): p = Product() p.domain = domain p.name = name p.code = code.lower() p.program_id = program_id p.save() return p