Commits

Tuk Bredsdorff committed 648b1b2

Replacing dashes with underscores in js variable.

Comments (0)

Files changed (1)

mezzanine_pagedown/widgets.py

     def render(self, name, value, attrs={}):
         if value is None: value = ''
         final_attrs = self.build_attrs(attrs, name=name)
-        final_id = final_attrs['id']
+        final_id = final_attrs['id'].replace('-', '_')
         del final_attrs['id']
         return mark_safe(render_to_string(self.template, {
             'final_attrs': flatatt(final_attrs),