Re: newforms-admin, modelforms: extending forms

2007-12-24 Thread Malcolm Tredinnick
On Sun, 2007-12-23 at 20:50 -0800, Michel Thadeu Sabchuk wrote: > Hi guys, > > I'm trying to extend a ModelForm, I had success but I must redefine > the Meta class, it doesn't got extended. Is this a bug? See the > following code: > > class Form1(forms.ModelAdmin): > class Meta: > m

newforms-admin, modelforms: extending forms

2007-12-23 Thread Michel Thadeu Sabchuk
Hi guys, I'm trying to extend a ModelForm, I had success but I must redefine the Meta class, it doesn't got extended. Is this a bug? See the following code: class Form1(forms.ModelAdmin): class Meta: model = SomeType class Form2(Form1): extra_field = forms.CharField(max_length=6