On Fri, Nov 17, 2006 at 12:00:02AM -0600, Adrian Holovaty wrote:
> However, one goal I've had for newforms *is* to let developers
> manually specify/override the form Field used for any particular
> database Field in the admin site. I think this could be achieved with
> a hook in the "class Admin". Something like this, maybe --
> 
>     class Admin:
>         field_overrides = {
>             'first_name': CharField(widget=PasswordInput),
>         }
> 

This would affect how the fields display when you auto-generate a form
from a model as well, right? Should that go in somewhere more general
than the Admin class?

-- 
Scott Paul Robertson
http://spr.mahonri5.net
GnuPG FingerPrint: 09ab 64b5 edc0 903e 93ce edb9 3bcc f8fb dc5d 7601

Attachment: pgpoklEwM93Nu.pgp
Description: PGP signature

Reply via email to