This is pretty easy. Instead of thinking about making dynamic forms,
think about making dynamic fields.

You'll have one form. When you initialize it, you'll pass it
information about the tickets available. In the __init__ of your form
you will dynamically add field objects to the form by appending to
self.fields.
example:

    self.fields['this_field_I_just_made_up'] = forms.CharField()


Notes:

    1. The first thing you'll need to do in your __init__ is to pop
off your custom values.
    2. The second thing you'll need to do in your __init__ is to call
the __init__ of the superclass with *args and **kwargs.

If you don't do those two things, in that order, you will get errors.

Shawn

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to