Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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 Carlton Gibson, 5 years ago

Resolution: needsinfo
Status: newclosed

Hi Fabian,

Thanks for the report. I think this is likely a duplicate of other issues.

  • You've marked the issue as arising against Django 2.1. Is that what you're using?
  • Can you create a minimal reproduce and see if the issue still arises against Django 2.2 (and/or master, but I don't think there's a relevant change there)?

(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!

comment:2 by Fabian Clemenz, 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 Carlton Gibson, 5 years ago

Resolution: needsinfoduplicate

OK, thanks for the confirmation. Looks like a duplicate of #30153 or #30179 (but let's not spend the time deciding exactly which. 🙂)

Note: See TracTickets for help on using tickets.
Back to Top