

def clean(self, *args, **kwargs):
    cleaned_data = super(SoftDeleteObjectAdminForm, self).clean(*args, **kwargs)
    if self.data.has_key('undelete'):
        self.instance.deleted = False
        cleaned_data['deleted'] = False
    return cleaned_data

dataset/ETHPy150Open scoursen/django-softdelete/softdelete/admin/forms.py SoftDeleteObjectAdminForm.clean/original