Skip to content

Commit

Permalink
fix(models): correct auth_provider field definition
Browse files Browse the repository at this point in the history
in addition to allowing null in the database for this field, forms
should allow blank values for this field.
  • Loading branch information
angela-tran committed Mar 22, 2024
1 parent 2bcf0a3 commit d78fd32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benefits/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class EligibilityVerifier(models.Model):
jwe_encryption_alg = models.TextField(null=True)
# The JWS-compatible signing algorithm
jws_signing_alg = models.TextField(null=True)
auth_provider = models.ForeignKey(AuthProvider, on_delete=models.PROTECT, null=True)
auth_provider = models.ForeignKey(AuthProvider, on_delete=models.SET_NULL, null=True, blank=True)
selection_label_template = models.TextField()
start_template = models.TextField(null=True)
# reference to a form class used by this Verifier, e.g. benefits.app.forms.FormClass
Expand Down

0 comments on commit d78fd32

Please sign in to comment.