Skip to content

Commit

Permalink
chore(models): add blank=True for optional group, label
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Oct 31, 2024
1 parent ff4d8fd commit 1479c3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion benefits/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 1479c3b

Please sign in to comment.