#12879: jquery gets included multiple times
-------------------------------------------+--------------------------------
Reporter: mariarchi | Owner: tobias
Status: reopened | Milestone: 1.2
Component: django.contrib.admin | Version: 1.2-beta
Resolution: | Keywords: jquery
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by ubernostrum):
The root issue is that JS is added in a list comprehension, which
generates the list of JS file paths to add before adding any of them; thus
the same file path can be added multiple times by a single declaration.
Patch attached above resolves this by using a loop which checks after
adding each path, and also includes a regression test case which
demonstrates the problem and passes after the fix is applied.
--
Ticket URL: <http://code.djangoproject.com/ticket/12879#comment:6>
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.