class Meta inheritance doesn't work properly

Issue #16 resolved
Anonymous created an issue

Hello. I met very unpleasant bug related to form_utils.


class BaseForm(BetterModelForm):
    class Meta:

class ChildForm(BaseForm):
    class Meta(BaseForm.Meta):
        model = Child
        fieldsets = (
            ('main', {'fields': ('name', 'start_date', 'end_date',),)

In result, the Meta.fieldsets field is empty in ChildForm. I didn't check other Meta fields.

Please correct this.

Comments (4)

  1. Log in to comment