1 | | It seems like Bhuvnesh correctly identified the cause. A potential solution would be to first set `C.fk` to `A.id` (which is going to be the `id` of model 'AB', i.e., the separate tables A and B, which are connected one-to-one with `B.a_ptr_id` when model A is made concrete), then change model B to inherit from model A (to form model 'AB'), and then update any existing data. |
| 1 | It seems like Bhuvnesh correctly identified the cause. A potential solution would be to first set `C.fk` to `A.id` (which is going to be the `id` of model 'AB', i.e., the separate tables A and B, which are connected one-to-one with `B.a_ptr_id` when model A is made concrete), then change model B to inherit from model A (to form model 'AB'), and then update any existing data. Alternatively, we could also set `C.fk` to `B.a_ptr_id` as it is also a primary key. |