def get_configurable_product_options(request, id):
    """Used by admin views"""
    cp = get_object_or_404(ConfigurableProduct, product__id=id)
    options = ''
    for og in cp.option_group.all():
        for opt in og.option_set.all():
            options += '<option value="%s">%s</option>' % (opt.id, str(opt))
    if not options:
        return cp.product.slug % '<option>No valid options found in "%s"</option>'
    return http.HttpResponse(options, mimetype="text/html")
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/views/__init__.py/get_configurable_product_options/swapped operands of `%`