If I try to do something like :
Article.all_objects.filter(removed__range=(start, end))
This will return the right number of objects to be restored
Article.all_objects.filter(removed__range=(start, end)).restore()
It will restore all the article that were deleted instead of only the one matching the query. The issue seems to be due to the get_unpatched method which remove the conditions related to the removed field.
What is the use of removing this conditions ?
If I try to do something like :
Article.all_objects.filter(removed__range=(start, end))This will return the right number of objects to be restored
Article.all_objects.filter(removed__range=(start, end)).restore()It will restore all the article that were deleted instead of only the one matching the query. The issue seems to be due to the
get_unpatchedmethod which remove the conditions related to the removed field.What is the use of removing this conditions ?