Re: Javascript issue on admin interface with prepopulated_fields

2009-01-07 Thread Matias Surdi
Done: http://code.djangoproject.com/ticket/9983 Thank you very much. Adrian Holovaty escribió: > On Wed, Jan 7, 2009 at 9:50 AM, Matias Surdi wrote: >> To solve this, I modified >> ./django/contrib/admin/templates/admin/prepopulated_fields_js.html >> >> replacing the event "onkeyup" on line

Re: Javascript issue on admin interface with prepopulated_fields

2009-01-07 Thread Adrian Holovaty
On Wed, Jan 7, 2009 at 9:50 AM, Matias Surdi wrote: > 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 tic

Javascript issue on admin interface with prepopulated_fields

2009-01-07 Thread Matias Surdi
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