Been hacking admin a bit lately and wondering if anyone else thinks
the following couple of minor improvements would help.

1. An extra_context on the admin view functions? Allowing you to
easily hack not only the template for a particular admin page, but
also the view!

2. The template selection is nice, the way it allows you to override
change_form on a per model, per app, or admin-wide basis. But in the
case of overriding it admin-wide, it would be much nicer to be able to
{% extend %} the original admin template rather than have to copy it.
So instead of calling it admin/change_form.html for example, have it
look for admin/change_form_custom.html or something. Trying to do this
without a different name spins the template engine into an infinite
loop.

3. Perhaps the {% block userlinks %} should be set once in base_site,
using an admin base URL rather than overridden in every template?
Making it easier to overrride admin-wide.

If anyone is interested I'll post the patches. I'd also be keen to
make some tips/documentation for hacking admin. Once you know where to
look, it's actually pretty quick and easy.


--~--~---------~--~----~------------~-------~--~----~
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