Opened 18 years ago
Last modified 17 years ago
#4398 closed
[newforms-admin] js variable in models.Admin class — at Initial Version
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
In the admin class, if you do :
js = http://127.0.0.1:8000/mediafiles/admin.js
It will be rendered like that in the admin :
<script src="/media/http://127.0.0.1:8000/mediafiles/admin.js" type="text/javascript"/>
Doc says : « If you use relative URLs — URLs that don’t start with http:// or / — then the admin site will automatically prefix these links with settings.ADMIN_MEDIA_PREFIX. », so I guess this is a bug.
Note:
See TracTickets
for help on using tickets.