I have to admit that trying option 1 (changing PK in the Django model) was a dead-end. Seems that monkey patching is best way to get job done. Though it's possible to redefine pk on a particular model via metaclasses (see attachment), somehow Django stores every app's model in a registry which I don't understand how to modify.
I have to admit that trying option 1 (changing PK in the Django model) was a dead-end. Seems that monkey patching is best way to get job done. Though it's possible to redefine pk on a particular model via metaclasses (see attachment), somehow Django stores every app's model in a registry which I don't understand how to modify.