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 override the behavior
of a widget, you have to either override the template or jump through
hoops to delay when your javascript runs, rather than just adding a
custom script to your ModelAdmin.

On Jun 25, 3:32 am, iliveinapark <iliveinap...@brentonannan.com>
wrote:
> 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 <iliveinap...@brentonannan.com>
> wrote:
>
> > Gday,
>
> > Overriding the admin templates is the only way to do 
> > this:http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#overriding-ad...
>
> > 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 JS (you'll prolly have to change this whenever you
> > register something new as well).
>
> > I generally opt to set verbose_names on my models, so that they get
> > listed into groups, eg:
>
> > Offer Banners
> > Offer Sidebar Banners
> > Referers - Domain Referers
> > Referers - Search Engine Referers
> > Referers - URL Referers
>
> > It's the cleanest way I've found to do such a thing.
>
> > Cheers,
> > Brenton
>
> > On Jun 25, 5:18 am, ringemup <ringe...@gmail.com> 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-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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to