id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 9983,Javascript issue on admin interface with prepopulated_fields,Matias Surdi,Carl Meyer,"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"". I think this change should be applied to trunk. ",,closed,contrib.admin,1.0,,fixed,,kevin@…,Accepted,1,0,0,0,0,0