Opened 15 years ago
Closed 15 years ago
#12726 closed (fixed)
double {{ media }} in admin templates...
Reported by: | jedie | Owned by: | Jannis Leidel |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
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 |
Description
I have double media files in some admin panel views. See: http://paste.pocoo.org/show/171364/
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?
Discuss: http://groups.google.com/group/django-developers/browse_thread/thread/a74b50c5419b3251
Attachments (1)
Change History (5)
by , 15 years ago
Attachment: | change_list_patch.txt added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 15 years ago
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 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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 }}