Undo the polymorphic.SET_NULL for Organization

It isn't polymorphic.
This commit is contained in:
Jeff Bradberry
2021-03-11 15:50:57 -05:00
parent 5b5f07d639
commit 5bec4a51c6
2 changed files with 20 additions and 2 deletions

View File

@@ -27,7 +27,6 @@ from awx.main.models.rbac import (
)
from awx.main.models.unified_jobs import UnifiedJob
from awx.main.models.mixins import ResourceMixin, CustomVirtualEnvMixin, RelatedJobsMixin
from awx.main.utils import polymorphic
__all__ = ['Organization', 'Team', 'Profile', 'UserSessionMembership']
@@ -67,7 +66,7 @@ class Organization(CommonModel, NotificationFieldsModel, ResourceMixin, CustomVi
null=True,
blank=True,
default=None,
on_delete=polymorphic.SET_NULL,
on_delete=models.SET_NULL,
related_name='+',
help_text=_('The default execution environment for jobs run by this organization.'),
)