Opened 6 years ago

Closed 6 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: UI/UX:

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 Changed 6 years ago by italomaia

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top