From a3ef203c853522fa0e5e45fc30a35e60d8365d7e Mon Sep 17 00:00:00 2001 From: Alexander J Sheehan Date: Wed, 13 Mar 2024 18:18:33 +0000 Subject: [PATCH] fix: updating group association group field --- ...cygroupassociation_enterprise_group_uuid.py | 18 ++++++++++++++++++ .../apps/subsidy_access_policy/models.py | 8 ++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 enterprise_access/apps/subsidy_access_policy/migrations/0023_alter_policygroupassociation_enterprise_group_uuid.py diff --git a/enterprise_access/apps/subsidy_access_policy/migrations/0023_alter_policygroupassociation_enterprise_group_uuid.py b/enterprise_access/apps/subsidy_access_policy/migrations/0023_alter_policygroupassociation_enterprise_group_uuid.py new file mode 100644 index 00000000..6eeafc8c --- /dev/null +++ b/enterprise_access/apps/subsidy_access_policy/migrations/0023_alter_policygroupassociation_enterprise_group_uuid.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.10 on 2024-03-13 18:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('subsidy_access_policy', '0022_policygroupassociation'), + ] + + operations = [ + migrations.AlterField( + model_name='policygroupassociation', + name='enterprise_group_uuid', + field=models.UUIDField(blank=True, help_text='The uuid that uniquely identifies the associated group.', null=True), + ), + ] diff --git a/enterprise_access/apps/subsidy_access_policy/models.py b/enterprise_access/apps/subsidy_access_policy/models.py index b19a71c3..982ba79a 100644 --- a/enterprise_access/apps/subsidy_access_policy/models.py +++ b/enterprise_access/apps/subsidy_access_policy/models.py @@ -1449,9 +1449,9 @@ class Meta: ) enterprise_group_uuid = models.UUIDField( - default=uuid4, - editable=False, - unique=True, - null=False, + editable=True, + unique=False, + null=True, + blank=True, help_text='The uuid that uniquely identifies the associated group.', )