1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Merge pull request #2808 from wwitzel3/release_3.3.0

disable computed for create preload data mgmt cmd
This commit is contained in:
Shane McDonald 2018-08-09 10:14:52 -04:00 committed by GitHub
commit 61c21c5ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
from django.core.management.base import BaseCommand
from crum import impersonate
from awx.main.models import User, Organization, Project, Inventory, CredentialType, Credential, Host, JobTemplate
from awx.main.signals import disable_computed_fields
class Command(BaseCommand):
@ -22,6 +23,7 @@ class Command(BaseCommand):
except IndexError:
superuser = None
with impersonate(superuser):
with disable_computed_fields():
o = Organization.objects.create(name='Default')
p = Project(name='Demo Project',
scm_type='git',