I'm no longer at the computer where my code resides. But "you are wanting to call formset_factory and have it pass along a parameter to the Form that the formset contains" is pretty much what I want to know how to do.
Wayne Smith-4 wrote: > > On Aug 19, 12:41 pm, SixDegrees <[email protected]> wrote: >> The parameter in question is a primary key that is used to generate a >> series >> of fields within the form. It is passed to the form __init__ routine, and >> can vary from one form to another. So, given a formset, I want to tell >> the >> formset "This is the parameter you should use when creating the next form >> you create." > > I think it might help if you could post a code snippet showing how you > are creating the formset (not the __init__, but where you call the > formset creation method) and the formset creation method itself (or > just its name if you are using formset_factory or something else from > Django). > > If I understand you correctly, you are wanting to call formset_factory > and have it pass along a parameter to the Form that the formset > contains. However, you talk about the parameter being a primary key, > which would indicate to me that you are dealing with existing objects > from models, in which case we should be talking about a ModelFormset. > > Wayne > > -- > 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. > > > -- View this message in context: http://old.nabble.com/Dynamic-Forms-with-Varying-init-Arguments-tp32296362p32297690.html Sent from the django-users mailing list archive at Nabble.com. -- 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.

