

def registered_form(model_cls):
    admin_cls = registered_modeladmin(model_cls)
    form_cls = admin_cls.form
    form_cls._admin_cls = admin_cls
    return form_cls

dataset/ETHPy150Open kux/django-admin-extend/admin_extend/extend.py registered_form/original