Changes between Initial Version and Version 1 of Ticket #21653
- Timestamp:
- Dec 22, 2013, 8:08:43 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21653 – Description
initial v1 1 help_text attribute into a TextFieldmodel is not converted to the title attribute textarea into html-page!1 `help_text` attribute into a `TextField` model is not converted to the title attribute textarea into html-page! 2 2 3 I fixed this by using __init__into MyModelForm4 3 I fixed this by using `__init__` into MyModelForm 4 {{{ 5 5 class MyModelForm(ModelForm): 6 6 def __init__(self, *args, **kwargs): # filtered queryset in foreignkey choice field … … 9 9 if field.get_internal_type() == "TextField": 10 10 self.fields[field.name].widget.attrs['title'] = field.help_text 11 11 }}} 12 12 Django 1.6.1