#9321: When overriding the widget for a manytomany field default help_text stays
---------------------------------------------------+------------------------
          Reporter:  mrcai                         |         Owner:  nobody     
                               
            Status:  reopened                      |     Milestone:             
                               
         Component:  Database layer (models, ORM)  |       Version:  1.2        
                               
        Resolution:                                |      Keywords:  
manytomanyfield, widget, related.py, admin
             Stage:  Accepted                      |     Has_patch:  1          
                               
        Needs_docs:  1                             |   Needs_tests:  0          
                               
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by rspeed):

  * keywords:  manytomanyfield, widget, related.py => manytomanyfield,
               widget, related.py, admin
  * has_patch:  0 => 1
  * component:  Forms => Database layer (models, ORM)

Comment:

 Attached an updated version of the patch from #12359 by [email protected]
 which moves the assignment of the help_text from
 django.db.models.fields.related to django.contrib.admin.options.

 I had begun making a patch to move the help_text assignment to
 django.forms.widgets.SelectMultiple, but in doing so I realized that this,
 too, is poor behavior. The help_text property is expected to be in direct
 control of the application; in no situation should it be modified by the
 framework.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9321#comment:11>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to