mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 05:59:28 -02:30
This flag henceforth is going to be used only for the "control plane" execution environments, which sysadmins will not be allowed to alter.
22 lines
537 B
Python
22 lines
537 B
Python
# Generated by Django 2.2.16 on 2021-06-07 19:36
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
def forwards(apps, schema_editor):
|
|
ExecutionEnvironment = apps.get_model('main', 'ExecutionEnvironment')
|
|
for row in ExecutionEnvironment.objects.filter(managed_by_tower=True):
|
|
row.managed_by_tower = False
|
|
row.save(update_fields=['managed_by_tower'])
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('main', '0144_event_partitions'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(forwards),
|
|
]
|