def save(self, *args, **kwargs):
        if self.instance:
            if self.is_valid():
                if self.cleaned_data['service']:
                    self.instance.service = self.cleaned_data['service']
                if self.cleaned_data['status']:
                    self.instance.status = self.cleaned_data['status']
                if self.cleaned_data['queue']:
                    self.instance.queue = self.cleaned_data['queue']
                self.instance.save()
                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()
Process form
dataset/ETHPy150Open treeio/treeio/treeio/services/forms.py/MassActionForm.save