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
--
Ticket URL: <https://code.djangoproject.com/ticket/30528>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => needsinfo
Comment:
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:
* #28377 (v2.0)
* #28866 (v2.1)
* #30153 and #30179 (v2.2)
See the [https://docs.djangoproject.com/en/2.2/releases/2.2/#merging-of-
form-media-assets 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!
--
Ticket URL: <https://code.djangoproject.com/ticket/30528#comment:1>
Comment (by Fabian Clemenz):
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!
--
Ticket URL: <https://code.djangoproject.com/ticket/30528#comment:2>
* resolution: needsinfo => duplicate
Comment:
OK, thanks for the confirmation. Looks like a duplicate of #30153 or
#30179 (but let's not spend the time deciding exactly which. 🙂)
--
Ticket URL: <https://code.djangoproject.com/ticket/30528#comment:3>