Perhaps this can help: 
http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/

On Jun 16, 9:42 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 16, 2008 at 9:41 AM, Jim <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I'm new to Django and apologize if this is a dopey question.  I need
> > to include a field a number of times in a form.  For that I see
> > 'prefix'.  But I need the field to appear a variable number of times.
> > I'm afraid it has me stumped because I'm not sure how to validate,
> > etc. I'd be very grateful for a tip to get me started.
>
> > Here is an example: a user wants to edit the information associated
> > with a project.  Part of that is a list of fields
> >  contributer name: ____   contributer email_______
> > one for each contributer to the project.
>
> > A project may have any number of contributers, so I need a variable
> > number of lines like the one above.  Now, I can show the lines as HTML
> > (by putting a list of form invocations in an array and in the template
> > just looping through the array; is that right?).   But I don't see how
> > to validate, associate the errors with with the right line, etc.   Is
> > there a natural construct for this?
>
> > Thank you,
> > Jim
>
> Perhaps this blog post will be helpful, I think it covers this kind of forms
> setup:
>
> http://www.pointy-stick.com/blog/2008/01/06/django-tip-complex-forms/
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to