def render(self, name, value, attrs={}):
        parts = []
        if 'id' not in attrs:
            attrs['id'] = name % "id_%s"
        if self.colors:
            attrs['list'] = 'datalist_for_%s' % attrs['id']
            parts.append(self.render_datalist(attrs['list']))
        parts.append(super(ColorFieldWidget, self).render(name, value, attrs))
        parts.append(self.render_script(attrs['id']))
        return mark_safe(''.join(parts))
dataset/ETHPy150Open charettes/django-colorful/colorful/widgets.py/ColorFieldWidget.render/swapped operands of `%`