Re: Advanced Form Questions

2008-04-02 Thread Chris Hartjes
On Wed, Apr 2, 2008 at 3:28 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > If your goal is to edit multiple items read this: > > http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ > Alex, That's pretty much what I'm looking for. Thanks! -- Chri

Re: Advanced Form Questions

2008-04-02 Thread [EMAIL PROTECTED]
If your goal is to edit multiple items read this: http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ On Apr 2, 5:20 am, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > For multiple instances of the same form you should use the 'prefix' > parameter in the

Re: Advanced Form Questions

2008-04-02 Thread Chris Hartjes
On Wed, Apr 2, 2008 at 6:20 AM, Przemek Gawronski < [EMAIL PROTECTED]> wrote: > > FORMS_COUNT=3 > > forms=[ SearchForm( prefix="form%d" % ( i )) for i in range( FORMS_COUNT > )] > > Hope that helps some. > > Przemek Przemek, Thanks for the tip. However, this brings me to my next problem. How

Re: Advanced Form Questions

2008-04-02 Thread Przemek Gawronski
For multiple instances of the same form you should use the 'prefix' parameter in the constructor: > .. > form = SearchForm(request.POST) f1 = SearchForm( prefix='f1', request=request.POST) f2 = SearchForm( prefix='f2', request=request.POST) .. or: FORMS_COUNT=3 forms=[ SearchForm( prefix="for

Re: Advanced Form Questions

2008-04-01 Thread spirit
you can look at those articles: http://www.djangoproject.com/documentation/newforms/ http://code.pui.ch/2007/01/07/using-djangos-newforms/ On 4月2日, 上午5时07分, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > Hi there. I'm a newbie at Python but have lots of experience with PHP and > MVC frameworks in

Re: Advanced Form Questions

2008-04-01 Thread spirit
About "1) how do I get Django to generate those form elements for me so I don't have to do it by hand 2) how do I get Django to process those values when they come in. " you can look at those articles belows: http://www.djangoproject.com/documentation/newforms/ http://code.pui.ch/2007/01/07/using

Advanced Form Questions

2008-04-01 Thread Chris Hartjes
Hi there. I'm a newbie at Python but have lots of experience with PHP and MVC frameworks in general. The question I have is on the proper Django way to solve a problem. I want to create a form where you can enter multiple teams and multiple dates in order to find out where and when they are playi