You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.
I'm trying to write a data migration for my app, and receiving the "not a Versionable" error when I read any VersionedForeignKey fields from models retrieved with the apps.get_model() recommended in Django docs. For example, this code is inside a RunPython migration:
I'm trying to write a data migration for my app, and receiving the "not a Versionable" error when I read any VersionedForeignKey fields from models retrieved with the
apps.get_model()
recommended in Django docs. For example, this code is inside a RunPython migration:I'm not sure whether this is the fault of Django migrations or of CleanerVersion.
I set a breakpoint inside
versions/models.py
at line 619 and I find that my target objects have made-up types:Additionally, in this context there is no
Model.objects.current
and noModel.objects.as_of
becauseobjects
is not a VersionedManager.I don't know what the right thing to do is here. In my project, I can avoid writing a data migration today but I will probably need one later.
The text was updated successfully, but these errors were encountered: