Skip to content

Cannot restore based on removed date #53

@jeremi

Description

@jeremi

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions