Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has to pass json type into fields after getting apps from migration directly #72

Open
QixiaLu opened this issue Apr 6, 2022 · 0 comments

Comments

@QixiaLu
Copy link

QixiaLu commented Apr 6, 2022

After getting apps from executor:

executor = MigrationExecutor(connection)
apps = executor.loader.project_state([migration file]).apps
Model = apps.get_model('..', '...')

I Have to pass json into translated field to create object. Otherwise, it will have errors saying 'isn't a valid json token'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant