Opened 18 years ago

Last modified 17 years ago

#4398 closed

[newforms-admin] js variable in models.Admin class — at Version 1

Reported by: Baptiste <baptiste.goupil@…> 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 (last modified by Adrian Holovaty)

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.

Change History (1)

comment:1 by Adrian Holovaty, 18 years ago

Description: modified (diff)

(Fixed formatting in description.)

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