def render_datalist(self, list_id):
        return ''.join([
            '<datalist id="%s">' % list_id,
            ''.join(['<option>%s</option>' % color for color in self.colors]),
            '</datalist>'
        ])
dataset/ETHPy150Open charettes/django-colorful/colorful/widgets.py/ColorFieldWidget.render_datalist/original