mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 17:28:51 -03:30
Merge pull request #3003 from AlanCoding/2988_team_cascade
Cascade delete teams from organization
This commit is contained in:
@@ -92,8 +92,8 @@ class Team(CommonModelNameNotUnique, ResourceMixin):
|
||||
organization = models.ForeignKey(
|
||||
'Organization',
|
||||
blank=False,
|
||||
null=True,
|
||||
on_delete=models.SET_NULL,
|
||||
null=False,
|
||||
on_delete=models.CASCADE,
|
||||
related_name='teams',
|
||||
)
|
||||
deprecated_projects = models.ManyToManyField(
|
||||
|
||||
Reference in New Issue
Block a user