Re: Error when passing arguments to custom __init__ of ModelForm

2010-06-14 Thread Jani Rahkola
e) ... On Jun 14, 2:25 am, Karen Tracey wrote: > On Sun, Jun 13, 2010 at 7:06 PM, Jani Rahkola wrote: > > > > > Hei, > > > I hope someone could shed some light on this one. > > I have these in their appropriate files: > > > class Shoppinglist

Error when passing arguments to custom __init__ of ModelForm

2010-06-13 Thread Jani Rahkola
Hei, I hope someone could shed some light on this one. I have these in their appropriate files: class ShoppinglistForm(ModelForm): def __init__(self, user=False, *args, **kwargs): ModelForm.__init__(self, *args, **kwargs) self.fields['pantry'].empty_label = None if us