

def save(self, *args, **kwargs):
    'Process form'
    if self.instance:
        if args.is_valid():
            if self.cleaned_data['delete']:
                if (self.cleaned_data['delete'] == 'delete'):
                    self.instance.delete()
                if (self.cleaned_data['delete'] == 'trash'):
                    self.instance.trash = True
                    self.instance.save()

dataset/ETHPy150Open treeio/treeio/treeio/identities/forms.py MassActionForm.save/VarMisuse@26/32 `self`->`args`