Re: ModelAdmin Media JS file order issue in Django 2.0

2017-12-10 Thread Andréas Kühne
Checking through the documents I found the following reference: https://docs.djangoproject.com/en/2.0/topics/forms/media/#order-of-assets Changed in Django 2.0: In older versions, the assets of Media objects are concatenated rather than merged in a way that tries to preserve the relative

Re: ModelAdmin Media JS file order issue in Django 2.0

2017-12-10 Thread Marc R
because they are specific to only a few models, particularly the loading scripts, and options, etc. this worked great in Django 1.11 On Sunday, 10 December 2017 09:36:56 UTC-5, Etienne Robillard wrote: > > Why don't you simply put the javascripts into your base template without > using Python

Re: ModelAdmin Media JS file order issue in Django 2.0

2017-12-10 Thread Etienne Robillard
Why don't you simply put the javascripts into your base template without using Python ? Etienne Le 2017-12-10 à 09:30, Marc R a écrit : I have this in my model: class Media:         js = ( *'/static/plugins/codemirror/lib/codemirror.js',*

ModelAdmin Media JS file order issue in Django 2.0

2017-12-10 Thread Marc R
I have this in my model: class Media: js = ( * '/static/plugins/codemirror/lib/codemirror.js',* '/static/plugins/codemirror/mode/htmlmixed/htmlmixed.js', '/static/plugins/codemirror/addon/fold/foldcode.js',