Skip to content

Commit

Permalink
Fix existing name on deleted pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatoschaves committed Feb 25, 2024
1 parent 34107d7 commit 58210f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/service/helpers/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ 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, deleted=True)
.filter(name=name).exists()):
if (not isinstance(name, str)
or Pipeline.objects.exclude(id=pipeline_id).exclude(deleted=True).filter(name=name).exists()):

raise NameInvalid(name)

Expand Down

0 comments on commit 58210f7

Please sign in to comment.