-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: EligibilityType model fields for expiration #1955
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
`supports_expiration` serves as a toggle for expiration functionality. the other fields are for configuring the duration before expiration and reenrollment.
this is to prepare for implementing custom validation
e3a2c13
to
e695317
Compare
e695317
to
fa36f7b
Compare
@@ -26,6 +27,33 @@ | |||
admin.site.register(model) | |||
|
|||
|
|||
class EligibilityTypeForm(forms.ModelForm): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hoping this could be done without a custom admin form?
I think implementing clean()
in the model class should be enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see now that it could be done that way too and that we don't need the custom admin form. I'll put this back in draft and move the logic to be done on the model
Superseded by #1957 |
Closes #1938
This PR adds fields to the
EligibilityType
model that will be needed to support expiration of benefits.Since these fields can be edited in the admin interface, this PR also configures what
form
should be used so that we can perform custom validation as specified on #1938.