Is there any way to change the order in which admin media are output
(e.g. outputting a ModelAdmin-level javascript after a widget-level
script)?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django
Gday,
Overriding the admin templates is the only way to do this:
http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#overriding-admin-templates
You can either try listing the items how you want (this will mean a
change to the templates everytime you register something new), or
doing it using
You could possibly alter the metaclass for the media for your model,
but I suspect this would lead to a whole world of hurt.
On 24 June, 20:18, ringemup wrote:
> Is there any way to change the order in which admin media are output
> (e.g. outputting a ModelAdmin-level javascript after a widget-le
Ha, I think I missed the point of that question...
See the admin templates part of my answer, ignore the rest - I don't
think it applies to your question, but it's a nifty trick anyways.
Brenton.
On Jun 25, 11:37 am, iliveinapark
wrote:
> Gday,
>
> Overriding the admin templates is the only way
Hehe, I'm actually using a bastardized custom admin class to handle
the actual display of the app list.
It seems odd to me that there's no way to control the order in which
admin media are output, since javascript is sensitive to the order in
which it's specified. It means that in order to overr
5 matches
Mail list logo