Skip to content

Commit 46608e6

Browse files
committed
comment
1 parent dacb8e6 commit 46608e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dojo/cicd_infrastructure/ui/forms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ class Meta:
1111
def __init__(self, *args, **kwargs):
1212
super().__init__(*args, **kwargs)
1313
if self.instance.pk:
14+
# Disallow editing of the infra type on an instance; engagement CICD FKs are scoped by infrastructure_type
15+
# via limit_choices_to (build_server/scm_server/orchestration), so changing the type would create a
16+
# semantic conflict between an engagement and this object.
1417
self.fields["infrastructure_type"].disabled = True

0 commit comments

Comments
 (0)