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

Can't load fixture for model with VersionedManyToManyField #73

Open ezheidtmann opened 9 years ago

ezheidtmann commented 9 years ago

If I have a VersionedManyToManyField on a model, I can dump it to a fixture fine, but loaddata fails with this message from versions/models.py line 961:

Related values can only be directly set on the current version of an object

I'll follow up with more information and hopefully a solution.

ezheidtmann commented 9 years ago

My solution for now is to delete all non-current models from my database before running ./manage.py dumpdata.