On 2/13/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> How about this syntax::
>
>         class Admin:
>                 custom_templates = {
>                         'field_name1' : 'widget/template_name1',
>                         'field_name2' : 'widget/template_name2',
>                 }
>
> (i.e. a dict mapping field names to template names).

Seems a bit boilerplatish, compared to a simple list of field names,
but the advantage of this would be that you could easily reuse
widget-specific templates. On the other hand, you could reuse
widget-specific templates with the field-name list by doing a simple
"{% extends %}" in the template.

I think we should decide: What's more common, reusing widget-specific
templates or making one-off widget-specific templates? I think my vote
is for the latter, although I don't feel too strongly about it.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to