

def render(self, name, value, attrs=None):
    rendered = super(ColorPickerWidget, self).render(name, name, attrs)
    return (rendered + mark_safe(('<script type="text/javascript">\n                $(\'#id_%s\').ColorPicker({\n                onSubmit: function(hsb, hex, rgb, el) {\n                    $(el).val(hex);\n                    $(el).ColorPickerHide();\n                },\n                onBeforeShow: function () {\n                    $(this).ColorPickerSetColor(this.value);\n                }\n             }).bind(\'keyup\', function(){\n                 $(this).ColorPickerSetColor(this.value);\n             });\n            </script>' % name)))

dataset/ETHPy150Open bitmazk/django-libs/django_libs/widgets.py ColorPickerWidget.render/VarMisuse@31/35 `value`->`name`