Re: BaseGenericInlineFormSet failing on Save As New in admin

2010-05-28 Thread Stephen Sundell
Added this for my GenericInlineFormSet and things seem to work correctly now: class MyGenericInlineFormSet(BaseGenericInlineFormSet): def __init__(self,*args,**kwargs): self.save_as_new = kwargs.get('save_as_new',False) super(MyGenericInlineFormSet,self).__init__(*args,**kwargs

BaseGenericInlineFormSet failing on Save As New in admin

2010-05-28 Thread Stephen Sundell
I'm using an InlineAdmin that is a generic relation, similar to django tagging, with one of my model admins. The problem is on a save as new, if the original object has tags, then the initial form count, gotten from the management form, isn't zero, even though the new object will have zero tags, c