I've noticed that if you have a ModelAdmin with the prepopulated_fields 
attribute set to:

     prepopulated_fields = {"object_identifier": ("object_type",)}

where the field "object_type" is a dropdown box (that is, has a 
choices=CHOICES argument) then the javascript that autofills the 
"object_identifier" field does not work properly when you choose an 
element with the mouse (what most users do).


To solve this, I modified 
./django/contrib/admin/templates/admin/prepopulated_fields_js.html

replacing the event "onkeyup" on line 5 for "onchange".


Do you think this change could be applied to trunk? Do you want me to 
submit a ticket and/or patch?


Thanks for your great work and this excellent tool.

Matias.


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

Reply via email to