#9110: prepopulate_from only works for text entry fields
----------------------------------+-----------------------------------------
 Reporter:  josho                 |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  SVN       
 Keywords:  admin prepopulate     |       Stage:  Unreviewed
Has_patch:  1                     |  
----------------------------------+-----------------------------------------
 With the current implementation, prepopulate_from only works when the
 fields being drawn from are basic textentry fields: it can't handle choice
 fields such as ForeignKeys, &c. The attached patch changes this so that if
 the field specified to prepopulate from is any sort of choice field it
 will use onchange instead of onkeyup to monitor the field, and will
 retrieve the text of the field to get the selected option rather than the
 value which would return the wrong thing.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9110>
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 django-updates@googlegroups.com
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