Changes between Initial Version and Version 1 of Ticket #21653


Ignore:
Timestamp:
Dec 22, 2013, 8:08:43 PM (11 years ago)
Author:
Tim Graham
Comment:

I don't see why this is a bug -- could you explain?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21653 – Description

    initial v1  
    1 help_text attribute into a TextField model 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!
    22
    3 I fixed this by using  __init__  into MyModelForm
    4 
     3I fixed this by using  `__init__`  into MyModelForm
     4{{{
    55class MyModelForm(ModelForm):
    66    def __init__(self, *args, **kwargs): # filtered queryset in foreignkey choice field
     
    99             if field.get_internal_type() == "TextField":
    1010                 self.fields[field.name].widget.attrs['title'] = field.help_text
    11 
     11}}}
    1212Django 1.6.1
Back to Top