<human>:  Get name of primary field of Django model
<bot>: Here is some code to get name of primary field `name` of django model `CustomPK`

CustomPK._meta.pk.name

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.