You will also have an attribute “name” on the pk-attribute. This seems to hold the name of the Field.
CustomPK._meta.pk.name
In my case I get the value “id” as result (like it should). 🙂
You will also have an attribute “name” on the pk-attribute. This seems to hold the name of the Field.
CustomPK._meta.pk.name
In my case I get the value “id” as result (like it should). 🙂