MnogoByte / django-permanent

Yet another approach to creation of non-deletable and non-removable from db restorable django models.
71 stars 20 forks source link

Cannot restore based on removed date #53

Open jeremi opened 8 years ago

jeremi commented 8 years ago

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 ?