

def get_moderated_object_form(self, model_class):

    class ModeratedObjectForm(ModelForm):

        class Meta():
            model = model_class
            if django_17():
                fields = '__all__'
    return ModeratedObjectForm

dataset/ETHPy150Open dominno/django-moderation/moderation/admin.py ModeratedObjectAdmin.get_moderated_object_form/original