bugfix for parent pk value in models with non 'id'-named pk field