Opened 14 years ago

Closed 14 years ago

#12244 closed (invalid)

If i overwrite extrahead in change_form.html class Media: js=[] does not work.

Reported by: italomaia Owned by: nobody
Component: contrib.admin Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If i create a custom change_form.html for a model, and overwrite the extrahead tag, js from class Media, in ModelAdmin is ignored. I believe the proper
behavior would be that both, the js defined libraries and the what's inside extrahead should coexist.

Reason? Because i do not want to add a library to my page to trigger a event in the page. So, i could add the mootools library to the ModelAdmin templates and trigger a slug_update method inside the extrahead.

Change History (1)

comment:1 by italomaia, 14 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top