On Tue, Apr 24, 2012 at 3:23 PM, Andrew Ingram <a...@andrewingram.net> wrote:
> I've had the need for this quite frequently, Whenever I'm using a
> custom form class with modelformset_factory I almost always end up
> having to define a custom formset class that does nothing except pass
> an extra kwargs (usually user) to each form.
>
> It looks like your approach only adds this facility to BaseFormSet, I
> think the formset factories will need to hook into it as well.
>
> Regards,
> Andrew Ingram
>

Yes, good point. I've only anticipated the cases where you specify
kwargs when instantiating the formset, and where you specify kwargs by
calling BaseFormSet's init method from a subclass. The same technique
could/should be available from the factory, I'll upload a new patch.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to