﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33241	"support for script type=""module"" in django admin Form Media"	Thomas Grainger	nobody	"I'd like to be able to add ESM modules to my Forms and Widgets eg:


{{{

@attr.frozen
class JS:
    type: Literal[""application/json"", ""module""] = ""application/json""
    src: str

@admin.register(MyModel)
class MyModelAdmin(admin.ModelAdmin):

    class Media:
        js = (JS(type=""module"", src='js/my_script.js'),)

}}}


see also https://stackoverflow.com/questions/56232944/how-to-add-script-type-module-in-django-admin"	New feature	closed	contrib.admin	3.2	Normal	duplicate			Unreviewed	0	0	0	0	0	0
