I´m not sure (anymore) we´re all talking about the same issue. when defining "MyBaseFormSet", I don´t know the parameters (because I know them in views.py and "MyBaseFormSet" is defined in forms.py). so, I have to pass the paramters from my view to the form (before I can override the __init__ function).
If I understand you (both) right, your proposing that I set the parameters by using _construct_form and then I should override the __init__ function of "MyUploadForm", right? but how do I pass the paramters to "MyBaseFormSet"? I´m feeling a little dumb here myself ... but I really don´t get it. thanks for your patience, patrick On Aug 20, 6:32 pm, "Justin Fagnani" <[EMAIL PROTECTED]> wrote: > On Wed, Aug 20, 2008 at 9:13 AM, patrickk <[EMAIL PROTECTED]> wrote: > > > one last question: how do I pass the paramaters from the view to the > > form? > > That's where you'll need to override __init__(). Like Brian said, at > this point it's straightforward Python: pass your arguments into > __init__(), set attributes, and call super() > > -Justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---