-
Notifications
You must be signed in to change notification settings - Fork 331
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
Don't allow negative values for Doctor Count for facility #1505
Conversation
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.
use min value validator in the model itself
Done! |
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.
No migrations????
yes migrations will be required |
@Pranshu1902 rebase and then make migrations |
Added migrations @sainak @rithviknishad |
care/facility/migrations/0375_alter_dailyround_resp_alter_hospitaldoctors_count.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Aakash Singh <[email protected]>
@Pranshu1902 make sure to handle negative values while migrating |
@vigneshhari @sainak updated! |
@sainak @vigneshhari please review and merge the PR |
@Pranshu1902 delete and recreate the migrations |
@sainak done |
@vigneshhari please review and merge the PR |
* merge migrations * fix bad migration from #1505 * fix tests
Proposed Changes
Raise Validation error when user tries to give a negative value for the doctor count for a facility.
Associated Issue
#1504
Merge Checklist
/docs
Only PR's with test cases included and passing lint and test pipelines will be reviewed
@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins