Skip to content

Skipping history creation when deleting an object #993

@duebbert

Description

@duebbert

Problem Statement
There is no attribute to skip saving a delete history entry when deleting an object.

Describe the solution you'd like
Either skip_history_when_saving on the object should be honoured (like in the post_save method) or a new skip_history_when_deleting attribute should be introduced.

Describe alternatives you've considered
I'm hacking the settings to temporarily set SIMPLE_HISTORY_ENABLED = False to avoid saving it.

Additional context
Implementation should be pretty straightforward like in the post_save method: https://github.com/jazzband/django-simple-history/blob/106266f6d68f74d2d56b0553a368ca8070d5cbc4/simple_history/models.py#L541

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions