Friday, June 25, 2010

Re: Admin Media output order?

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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate