django-garnett icon indicating copy to clipboard operation
django-garnett copied to clipboard

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

Open QixiaLu opened this issue 2 years ago • 0 comments

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'

QixiaLu avatar Apr 06 '22 03:04 QixiaLu