Re: Newforms: seperating database and form logic

2006-11-19 Thread Adrian Holovaty
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 si

Re: Newforms: seperating database and form logic

2006-11-18 Thread Scott Paul Robertson
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".

Re: Newforms: seperating database and form logic

2006-11-17 Thread Adrian Holovaty
On 11/17/06, Jani <[EMAIL PROTECTED]> wrote: > Is there any reason not to use same argument names in database fields > and form fields? I have been playing with newforms and I constantly > write "max_length" argument in CharField as "maxlength" which is used > in database and oldforms CharField.

Re: Newforms: seperating database and form logic

2006-11-16 Thread Jani
Is there any reason not to use same argument names in database fields and form fields? I have been playing with newforms and I constantly write "max_length" argument in CharField as "maxlength" which is used in database and oldforms CharField. Jani --~--~-~--~~~---~-

Re: Newforms: seperating database and form logic

2006-11-16 Thread Adrian Holovaty
On 11/16/06, SmileyChris <[EMAIL PROTECTED]> wrote: > It seems like a great opportunity as newforms develops to clean up the > database fields mess. Most of the arguments you pass a database field > are not related to the database. > > Is this part of the goal of newforms, or am I thinking too big

Newforms: seperating database and form logic

2006-11-16 Thread SmileyChris
It seems like a great opportunity as newforms develops to clean up the database fields mess. Most of the arguments you pass a database field are not related to the database. Is this part of the goal of newforms, or am I thinking too big? With newforms, we can just have one optional argument (for