Closed thekaveman closed 5 months ago
When trying to edit an existing or add a new EligibilityVerifier model in the Admin, the following error message is displayed:
EligibilityVerifier
This is despite the field in the model being marked with null=True, blank=True
null=True, blank=True
It looks like the bug is in this override of the blank kwarg in SecretNameField:
blank
SecretNameField
# similar to max_length, enforce at the field (form) validation level to not allow blanks kwargs["blank"] = False
We want blank = True to allow the form to pass validation in the Admin.
blank = True
Steps to reproduce the behavior:
Eligibility verifiers
Save
This is an optional field. It should not be required to save an EligibilityVerifier in the Admin.
When trying to edit an existing or add a new
EligibilityVerifier
model in the Admin, the following error message is displayed:This is despite the field in the model being marked with
null=True, blank=True
It looks like the bug is in this override of the
blank
kwarg inSecretNameField
:We want
blank = True
to allow the form to pass validation in the Admin.To Reproduce
Steps to reproduce the behavior:
Eligibility verifiers
Save
button (no changes necessary)Expected behavior
This is an optional field. It should not be required to save an
EligibilityVerifier
in the Admin.