Re: Newforms 'preferred practice'

2007-01-12 Thread Felix Ingram
Hi Chris, On 12/01/07, Chris Rose <[EMAIL PROTECTED]> wrote: > Felix Ingram wrote: > > 3. Binding data - I'd like the form to handle editing of an instance. > > I could construct a dictionary of values and pass it to the form as > > per the docs but I'd like to just pass a model instance and have

Re: Newforms 'preferred practice'

2007-01-12 Thread Felix Ingram
Hi Honza, On 12/01/07, Honza Král <[EMAIL PROTECTED]> wrote: > On 1/12/07, Felix Ingram <[EMAIL PROTECTED]> wrote: > > > > Hello all, > > > > I've been playing around with the newforms library and I'd like to > > check that I'm on the right track. > > > > I've got a fairly complicated model that

Re: Newforms 'preferred practice'

2007-01-12 Thread Chris Rose
Felix Ingram wrote: > 3. Binding data - I'd like the form to handle editing of an instance. > I could construct a dictionary of values and pass it to the form as > per the docs but I'd like to just pass a model instance and have the > form sort things out. Is this advisable? If so then does anyone

Re: Newforms 'preferred practice'

2007-01-12 Thread Honza Král
On 1/12/07, Felix Ingram <[EMAIL PROTECTED]> wrote: > > Hello all, > > I've been playing around with the newforms library and I'd like to > check that I'm on the right track. > > I've got a fairly complicated model that has a few foreign keys and > m2m fields. One of the m2m fields references a tab

Newforms 'preferred practice'

2007-01-12 Thread Felix Ingram
Hello all, I've been playing around with the newforms library and I'd like to check that I'm on the right track. I've got a fairly complicated model that has a few foreign keys and m2m fields. One of the m2m fields references a table with ~130,000 rows so the usual select boxes aren't that usabl