Re: save_m2m() incorrectly ignoring exclude?

2009-12-04 Thread Margie Roginski
Ok, thanks Russell, I will do that. Just first wanted to confirm I wasn't missing something. Margie On Dec 3, 3:59 pm, Russell Keith-Magee wrote: > On Fri, Dec 4, 2009 at 6:23 AM, Margie Roginski > > > > wrote: > > In forms/models.py I see

Re: save_m2m() incorrectly ignoring exclude?

2009-12-03 Thread Russell Keith-Magee
On Fri, Dec 4, 2009 at 6:23 AM, Margie Roginski wrote: > In forms/models.py I see this: > >    def save_m2m(): >        opts = instance._meta >        cleaned_data = form.cleaned_data >        for f in opts.many_to_many: >            if fields and f.name not in fields: >

save_m2m() incorrectly ignoring exclude?

2009-12-03 Thread Margie Roginski
In forms/models.py I see this: def save_m2m(): opts = instance._meta cleaned_data = form.cleaned_data for f in opts.many_to_many: if fields and f.name not in fields: continue if f.name in cleaned_data: