[1.6.x] Fixed ._meta.pk_index() virtual field failure

Backport of 92476e880c from master