Opened 14 years ago

Closed 14 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_list_patch.txt (799 bytes ) - added by jedie 14 years ago.

Download all attachments as: .zip

Change History (5)

by jedie, 14 years ago

Attachment: change_list_patch.txt added

comment:1 by jedie, 14 years ago

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 by Jannis Leidel, 14 years ago

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

comment:3 by ebartels@…, 14 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 Jannis Leidel, 14 years ago

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