cleanerversion icon indicating copy to clipboard operation
cleanerversion copied to clipboard

Can't load fixture for model with VersionedManyToManyField

Open ezheidtmann opened this issue 10 years ago • 1 comments

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 avatar Apr 24 '15 18:04 ezheidtmann

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

ezheidtmann avatar Apr 25 '15 00:04 ezheidtmann