Re: Inline formset factory ignores 'exclude=' for foreign key field

2012-03-01 Thread gulrtosk
Right, I don't know whether this is a bug or done on purpose ... It looks like it was done on purpose so I'd be happy to hear the experts on this. I'm using Django 1.3. I hope I got this right. On line 752 of django.forms.models (development trunk), in the add_fields() method of BaseInlineFormS

Inline formset factory ignores 'exclude=' for foreign key field

2012-03-01 Thread gulrtosk
Hello list, through trial and error I discovered that it isn't required to pass the foreign key form field post data to the constructor of an inline form set. Django will fill it in automatically by looking at the primary key of the 'instance=' given. So I figured I might as well exclude the hi