b.instance_a.save()
for r in orm['app1.A'].objects.filter(instance_b_placeholder__isnull=False):
    r.instance_b_placeholder.instance_a = r
r.instance_b_placeholder.save()
How to perform a datamigration when moving from one-to-one to one-to-many