Ville Säävuori wrote:
Replying to myself

> This would be great. But I think it would be better to name the
> templates <app>_<model>_foo.html. It would make the customization of
> admin pages very easy and Django-like.

D'oh. After looking the admin source code, this allready works! I
wonder howcome it isn't documented? (Or is it?)

Anyway, you can override the default admin template (at least for
change_list.html and change_form.html) by putting your own template to
/yourtemplates/admin/<appname>/ for app-wide override or to
/yourtemplates/admin/appname/modelname/ for model-wide override,
respectively.

This is great. And I really think it should be better documented! :)

Yeah, the only place I know of is:
http://code.djangoproject.com/wiki/NewAdminChanges#Adminconvertedtoseparatetemplates


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to