swisscom / cleanerversion

CleanerVersion adds a versioning/historizing layer to your relational DB which implements a "Slowly Changing Dimensions Type 2" behavior
Apache License 2.0
136 stars 53 forks source link

Restore deleted object does not work properly. #126

Open matuu opened 7 years ago

matuu commented 7 years ago

I am attempt restoring a deleted object, and I have noticed that id is not equal to identity after to restoring. When I restore a related object, the relationship is not correct because id != identity.

Below, an example. This object with id = 1 was delete at 2016-12-15. When attempt restoring it, its id is not 1 again. example

brki commented 7 years ago

Thanks for the report.

Can you provide some code to allow reproducing this?

What database type are you using?

Have you specified a value for VERSIONS_USE_UUIDFIELD in your settings?

What version of Django are you using?

What version of CleanerVersion are you using?