Ticket #1799: oldforms-id-replace-dots-by-underscore.diff

File oldforms-id-replace-dots-by-underscore.diff, 481 bytes (added by david@…, 17 years ago)

while newforms are under development here is a patch :)

  • django/oldforms/__init__.py

     
    365365
    366366    def get_id(self):
    367367        "Returns the HTML 'id' attribute for this form field."
    368         return FORM_FIELD_ID_PREFIX + self.field_name
     368        return FORM_FIELD_ID_PREFIX + self.field_name.replace('.', '_')
    369369
    370370####################
    371371# GENERIC WIDGETS  #
Back to Top