#12879: jquery gets included multiple times
----------------------------------+-----------------------------------------
 Reporter:  mariarchi             |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.2-beta  
 Keywords:  jquery                |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 ModelAdmin adds jquery.min.js to the self.media if self.actions is not
 False.
 However, InlineModelAdmin by default includes jquery.min.js as well.

 So given a model with N inlines by default we end up with N+1 jqueries.

 It wouldn't be that bad, however, what makes it really bad is the fact
 that if the main form specifies a jquery plugin in the media definition it
 will be overwritten by vanilla redundant jquery.

 The simplest fix would be to implement internal storage in Media object as
 a set which would remove redundant entries.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12879>
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