diff --git a/data/service/helpers/_helpers.py b/data/service/helpers/_helpers.py index bdeab53c..265b9610 100644 --- a/data/service/helpers/_helpers.py +++ b/data/service/helpers/_helpers.py @@ -108,7 +108,9 @@ def check_input(strategies, edit_pipeline=False, **kwargs): name = kwargs.get('name') if name is None: raise NameRequired - if not isinstance(name, str) or Pipeline.objects.exclude(id=pipeline_id).filter(name=name).exists(): + if (not isinstance(name, str) or Pipeline.objects.exclude(id=pipeline_id, deleted=True) + .filter(name=name).exists()): + raise NameInvalid(name) color = kwargs.get('color')