Ticket #1799: oldforms-id-replace-dots-by-underscore.diff
File oldforms-id-replace-dots-by-underscore.diff, 481 bytes (added by , 18 years ago) |
---|
-
django/oldforms/__init__.py
365 365 366 366 def get_id(self): 367 367 "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('.', '_') 369 369 370 370 #################### 371 371 # GENERIC WIDGETS #