--
Ticket URL: <https://code.djangoproject.com/ticket/16915>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* version: 1.3 => SVN
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
I lean towards being able to set the template base directory
per-`AdminSite`, rather than pointing to the base template itself, as that
gives even more flexibility if you want to e.g. just customize the change
page for a single model, per-`AdminSite`. In any case, this is a valid use
case that ought to be made easier.
--
Ticket URL: <https://code.djangoproject.com/ticket/16915#comment:1>
Comment (by CBWhiz):
As a temporary workaround, this Middleware and TemplateLoader does the
job: https://gist.github.com/1245626.
Note that this uses the threadlocal hack everyone seems to hate. Also note
that if you're using Coffin for Jinja2 support, that will break due to
https://github.com/coffin/coffin/issues/23 until you apply a workaround
like that described in https://github.com/coffin/coffin/pull/24
--
Ticket URL: <https://code.djangoproject.com/ticket/16915#comment:2>