From 5a304db840fd2e10e2641de67f16c206db154d96 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Thu, 31 Mar 2022 13:30:07 -0400 Subject: [PATCH] Mark inventory source field for deprecation --- ...9_deprecate_inventory_source_UoPU_field.py | 21 +++++++++++++++++++ awx/main/models/inventory.py | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 awx/main/migrations/0159_deprecate_inventory_source_UoPU_field.py diff --git a/awx/main/migrations/0159_deprecate_inventory_source_UoPU_field.py b/awx/main/migrations/0159_deprecate_inventory_source_UoPU_field.py new file mode 100644 index 0000000000..b586878fee --- /dev/null +++ b/awx/main/migrations/0159_deprecate_inventory_source_UoPU_field.py @@ -0,0 +1,21 @@ +# Generated by Django 3.2.12 on 2022-03-31 17:28 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0158_make_instance_cpu_decimal'), + ] + + operations = [ + migrations.AlterField( + model_name='inventorysource', + name='update_on_project_update', + field=models.BooleanField( + default=False, + help_text='This field is deprecated and will be removed in a future release. In future release, functionality will be migrated to source project update_on_launch.', + ), + ), + ] diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 3b7945c965..14e7477461 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -993,6 +993,10 @@ class InventorySource(UnifiedJobTemplate, InventorySourceOptions, CustomVirtualE ) update_on_project_update = models.BooleanField( default=False, + help_text=_( + 'This field is deprecated and will be removed in a future release. ' + 'In future release, functionality will be migrated to source project update_on_launch.' + ), ) update_on_launch = models.BooleanField( default=False,