#10990: Admin templates that extend base_site.html and override extrahead or
extrastyle should include block.super last
----------------------------------+-----------------------------------------
Reporter: kit1980 | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 1 |
----------------------------------+-----------------------------------------
Admin templates that extend base_site.html and override extrahead or
extrastyle (change_form.html, change_list.html, index.html, login.html,
auth/user/change_password.html) should include block.super in extrahead or
extrastyle blocks '''after''' their own additional .css or .js files, so
files from user-changed base_site.html's extrahead or extrastyle blocks
appear last in generated html code and thus override default values.
For example, I customized function URLify() from urlify.js a bit to remove
more small words (non-English prepositions) and customized
admin/base_site.html (put it in my project's template directory) by
putting '<script src="{{ MEDIA_URL }}js/my_urlify.js"
type="text/javascript"></script>' in extrahead block. I want this line to
appear in html code after standard urlify.js to override the default
behaviour.
Similar for css.
This change will change nothing for users who don't customize admin
base_site.html
--
Ticket URL: <http://code.djangoproject.com/ticket/10990>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---