'Check formset is a subclass of BaseModelFormSet.'

def _check_formset(self, obj):

    if (not issubclass(obj.formset, BaseModelFormSet)):
        return must_inherit_from(parent='BaseModelFormSet', option='formset', obj=obj, id='admin.E206')
    else:
        return []
