-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
enhancementIndicates new improvementsIndicates new improvementsstaleIndicates issues, pull requests, or discussions are inactiveIndicates issues, pull requests, or discussions are inactive
Description
Request to change the return behavior of "delete"
Problem
The table delete method returns the number of objects that fit the query as "delete_count".
When the delete is aborted it returns a positive number.
Workaround
If inside the inherited delete method, check the len(self) to know if deleted.
Requirements
Return the number of deleted objects
Justification
This can be used to perform actions only if the objects were deleted
Related Errors
There are no errors but it is not intuitive that when no objects are deleted the function returns the number of objects that could have been deleted. :)
Metadata
Metadata
Assignees
Labels
enhancementIndicates new improvementsIndicates new improvementsstaleIndicates issues, pull requests, or discussions are inactiveIndicates issues, pull requests, or discussions are inactive