mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 00:47:29 -02:30
Fixed swapped transaction/rebuild statements
This commit is contained in:
@@ -114,8 +114,8 @@ class Rollback(Exception):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
with batch_role_ancestor_rebuilding():
|
with transaction.atomic():
|
||||||
with transaction.atomic():
|
with batch_role_ancestor_rebuilding():
|
||||||
admin, _ = User.objects.get_or_create(username = 'admin', is_superuser=True)
|
admin, _ = User.objects.get_or_create(username = 'admin', is_superuser=True)
|
||||||
org_admin, _ = User.objects.get_or_create(username = 'org_admin')
|
org_admin, _ = User.objects.get_or_create(username = 'org_admin')
|
||||||
org_member, _ = User.objects.get_or_create(username = 'org_member')
|
org_member, _ = User.objects.get_or_create(username = 'org_member')
|
||||||
|
|||||||
Reference in New Issue
Block a user