On 11/18/06, Scott Paul Robertson <[EMAIL PROTECTED]> wrote:
> 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?
No, this would *only* affect the model. There will be some other hooks
for specifying/customizing forms from models -- some helper functions
that haven't yet been written in django.newforms.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---