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! --

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(

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/

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