#30528 closed Bug (duplicate)
Django Admin adds Javascript in different sequences
Reported by: | Fabian Clemenz | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 2.1 |
Severity: | Normal | Keywords: | admin, inline, js |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
we're using Django on a large scale intern company project. We found an issue with using inlines. On Creation of a new Model the Admin interface with inlines works fine (jQuery gets loaded on top of the page, inline.js follows way down in the head section).
But after saving this model and reopening it, the inline.js is loaded directly after jQuery and posts following error:
TypeError: undefined is not an object (evaluating '$.fn')
I made a little workaround with my own javascript just calling the inline.js if that didn't load. But that can't be the solution.
Do you know whats the problem or what we could do?
Regards
Fabian
Change History (3)
comment:1 by , 5 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
comment:2 by , 5 years ago
Hi,
thanks for the fast reply. Yes we're using Django 2.1.7.
It seems like Django 2.2 fixes the error. Thanks for the Help!
comment:3 by , 5 years ago
Resolution: | needsinfo → duplicate |
---|
Hi Fabian,
Thanks for the report. I think this is likely a duplicate of other issues.
(Some) History:
See the Merging of Form Media Assets section in the Django v2.2 release notes. Does upgrading and/or applying the advise there solve your problem?
I'm going to close this for now as
needsinfo
. If you could follow-up with more details here we can either re-open, if the issue still remains or pin this down to a duplicate of one of the above.Thanks!