Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread James Bennett
On 6/27/07, leif strickland <[EMAIL PROTECTED]> wrote: > After some digging around, it looks like the newforms-admin branch > does not allow widget declarations within the model class itself. Yeah. As you've discovered, one of the big points of newforms-admin is to get as much stuff as possible

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread leif strickland
After some digging around, it looks like the newforms-admin branch does not allow widget declarations within the model class itself. However, adding a custom widget is quite easy. In the branch, almost all of the admin app functionality has been moved out of the inner Admin class and into a

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread James Bennett
On 6/27/07, leif <[EMAIL PROTECTED]> wrote: > Does anyone have information on this topic? I have a feeling I'm not > the only one who's wondering this. Thanks! Your best bet is probably to read the source right now; when the branch is complete there will undoubtedly be documentation showing the

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread leif
Does anyone have information on this topic? I have a feeling I'm not the only one who's wondering this. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Custom admin field widgets in the newforms-admin branch

2007-06-26 Thread leif
By the way, I did find the hook in django/branches/newforms-admin/ django/contrib/admin/options.py for specifying the form field for a given database field. But that's different than allowing a developer to specify the widget for a given field in the model itself.