Remove hardcoded 'pk'

Consistently use .get_pk_name instead of hardcoded ‘pk’ string.