From 1479c3bcb106c62517dedcde97d567088e6b8223 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Tue, 22 Oct 2024 17:48:16 +0000 Subject: [PATCH] chore(models): add blank=True for optional group, label --- ..._transitagency_enrollmentflow_optionalfields.py | 14 ++++++++++++++ benefits/core/models.py | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/benefits/core/migrations/0031_transitagency_enrollmentflow_optionalfields.py b/benefits/core/migrations/0031_transitagency_enrollmentflow_optionalfields.py index 473e795fdc..5c5ce04461 100644 --- a/benefits/core/migrations/0031_transitagency_enrollmentflow_optionalfields.py +++ b/benefits/core/migrations/0031_transitagency_enrollmentflow_optionalfields.py @@ -103,6 +103,20 @@ class Migration(migrations.Migration): help_text="Primary internal system name for this EnrollmentFlow instance, e.g. in analytics and Eligibility API requests.", # noqa: E501 ), ), + migrations.AlterField( + model_name="enrollmentflow", + name="group_id", + field=models.TextField( + blank=True, help_text="Reference to the TransitProcessor group for user enrollment", null=True + ), + ), + migrations.AlterField( + model_name="enrollmentflow", + name="label", + field=models.TextField( + blank=True, help_text="A human readable label, used as the display text in Admin.", null=True + ), + ), migrations.AlterField( model_name="enrollmentflow", name="eligibility_start_template_override", diff --git a/benefits/core/models.py b/benefits/core/models.py index 2410e4306f..ed3ff72f6b 100644 --- a/benefits/core/models.py +++ b/benefits/core/models.py @@ -387,9 +387,10 @@ class EnrollmentFlow(models.Model): ) label = models.TextField( null=True, + blank=True, help_text="A human readable label, used as the display text in Admin.", ) - group_id = models.TextField(null=True, help_text="Reference to the TransitProcessor group for user enrollment") + group_id = models.TextField(null=True, blank=True, help_text="Reference to the TransitProcessor group for user enrollment") supports_expiration = models.BooleanField( default=False, help_text="Indicates if the enrollment expires or does not expire" )