Thanks for the pointer James - the one place I hadn't looked ;) A great implementation - turns out that just like the admin templates, I can create a "widget" template directory and override or include new templates. Also neat that the code falls back on a fields superclass if a template doesn't exist.
-Phil On 14/06/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 6/14/06, Phil Powell <[EMAIL PROTECTED]> wrote: > > I'm playing around with extending field types, but I've hit a bit of a > > wall when trying to create custom "widgets" for use in the admin. Can > > anyone shed any light on how templates in > > django/contrib/admin/templates/widget/ are invoked? > > They're pulled in by the 'field_widget' templatetag (in > django/contrib/admin/templatetags/admin_modify.py). > > -- > "May the forces of evil become confused on the way to your house." > -- George Carlin > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---