Opened 9 years ago

Closed 9 years ago

#12726 closed (fixed)

double {{ media }} in admin templates...

Reported by: jedie Owned by: Jannis Leidel
Component: contrib.admin Version: master
Severity: Keywords: media
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I have double media files in some admin panel views. See:

There is two times {{ media }} in the file contrib/admin/templates/admin/change_list.html since changeset 12298
One in {% block extrastyle %} and one in {% block extrahead %}

This is a bug, isn't it?


Attachments (1)

change_list_patch.txt (799 bytes) - added by jedie 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by jedie

Attachment: change_list_patch.txt added

comment:1 Changed 9 years ago by jedie

I also notice, that change_list.html doesn't has a {{ block.super }} in {% block extrahead %}...

I added change_list_patch.txt to change {{ medie }} with {{ block.super }}

comment:2 Changed 9 years ago by Jannis Leidel

Owner: changed from nobody to Jannis Leidel
Status: newassigned
Triage Stage: UnreviewedAccepted

comment:3 Changed 9 years ago by ebartels@…

Is there any reason not to split it up and have a call to {{media.css}} inside extrastyle block, and then {{media.js}} inside extrahead?

comment:4 Changed 9 years ago by Jannis Leidel

Resolution: fixed
Status: assignedclosed

(In [12365]) Fixed #12726 - Prevent listing media twice in admin's change list. Thanks, jedie.

Note: See TracTickets for help on using tickets.
Back to Top