-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for deleting a location (#1812)
* Support for deleting a location * add tests * refactor * link patient to consultation bed * restrict deletion if beds are linked to location * restrict for linked assets * add tests and update restrictions * add destroy permissions in permissions mixin instead of viewset * refactor to use reverse relation * filter soft deletes Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com> * include soft deleted asset in tests --------- Co-authored-by: Rithvik Nishad <rithvikn2001@gmail.com> Co-authored-by: Aakash Singh <mail@singhaakash.dev>
- Loading branch information
1 parent
307a7c5
commit 29b1569
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters