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
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
2 matches
Mail list logo