cleanerversion
cleanerversion copied to clipboard
Can't load fixture for model with VersionedManyToManyField
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.
My solution for now is to delete all non-current models from my database before running ./manage.py dumpdata.