[Django] #30528: Django Admin adds Javascript in different sequences

9 views
Skip to first unread message

Django

unread,
May 29, 2019, 8:58:04 AM5/29/19
to django-...@googlegroups.com
#30528: Django Admin adds Javascript in different sequences
-------------------------------------+-------------------------------------
Reporter: FreakyTea | Owner: nobody
Type: Bug | Status: new
Component: | Version: 2.1
contrib.admin |
Severity: Normal | Keywords: admin, inline, js
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/30528>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 30, 2019, 3:42:11 AM5/30/19
to django-...@googlegroups.com
#30528: Django Admin adds Javascript in different sequences
-----------------------------------+--------------------------------------
Reporter: Fabian Clemenz | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 2.1
Severity: Normal | Resolution: needsinfo
Keywords: admin, inline, js | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Carlton Gibson):

* 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>

Django

unread,
May 31, 2019, 3:28:05 AM5/31/19
to django-...@googlegroups.com
#30528: Django Admin adds Javascript in different sequences
-----------------------------------+--------------------------------------
Reporter: Fabian Clemenz | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 2.1
Severity: Normal | Resolution: needsinfo
Keywords: admin, inline, js | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------

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>

Django

unread,
May 31, 2019, 5:28:04 AM5/31/19
to django-...@googlegroups.com
#30528: Django Admin adds Javascript in different sequences
-----------------------------------+--------------------------------------
Reporter: Fabian Clemenz | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 2.1
Severity: Normal | Resolution: duplicate
Keywords: admin, inline, js | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Carlton Gibson):

* 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>

Reply all
Reply to author
Forward
0 new messages