Friday, June 4, 2010

Re: Something like admin.StackedInline where 'extra'

Thanks Frank.

On Jun 3, 6:33 pm, Frank Wiles <fr...@wiles.org> wrote:
> On Thu, Jun 3, 2010 at 9:56 AM, jeremy07 <richard.zeh...@gmail.com> 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-...
>
> This is what you're wanting.
>
> --
> Frank Wiles
> Revolution Systems |http://www.revsys.com/
> fr...@revsys.com   | (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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate