Skip to content

Commit

Permalink
fix(models): change the description to be nullable
Browse files Browse the repository at this point in the history
This is because the selection description is optional.
  • Loading branch information
angela-tran committed Mar 17, 2022
1 parent 2dfeeb8 commit c87d7fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benefits/core/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Migration(migrations.Migration):
("jws_signing_alg", models.TextField(help_text="The JWS-compatible signing algorithm")),
("eligibility_types", models.ManyToManyField(to="core.EligibilityType")),
("selection_label", models.TextField()),
("selection_label_description", models.TextField()),
("selection_label_description", models.TextField(null=True)),
("instructions_title", models.TextField()),
("instructions_item_name", models.TextField()),
("instructions_item_description", models.TextField()),
Expand Down
2 changes: 1 addition & 1 deletion benefits/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class EligibilityVerifier(models.Model):
sub_regex = models.TextField(null=True, help_text="A regular expression used to validate the 'sub' API field before sending to this verifier") # noqa: 503
name_max_length = models.PositiveSmallIntegerField(null=True, help_text="The maximum length accepted for the 'name' API field before sending to this verifier") # noqa: 503
selection_label = models.TextField()
selection_label_description = models.TextField()
selection_label_description = models.TextField(null=True)
instructions_title = models.TextField()
instructions_item_name = models.TextField()
instructions_item_description = models.TextField()
Expand Down

0 comments on commit c87d7fd

Please sign in to comment.