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=60)
Meta = Form1.Meta # without this line, the inheritance doesn't
work as expected
Thanks for help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---