On Thu, Jun 3, 2010 at 9:56 AM, jeremy07 <[email protected]> wrote:
> Hi, I have a simple booking app where first form gets number of
> travelers. Based on that number I need to generate another form with
> number of rows equal to entered number of travelers to get their
> names.  Something like admin.StackedInline where 'extra' would be a
> number of travelers. Any idea?

Look into inline formsets:

http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-formsets

This is what you're wanting.

-- 
Frank Wiles
Revolution Systems | http://www.revsys.com/
[email protected]   | (800) 647-6298

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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