def pk_index(self):
        return self.concrete_fields.index(self.pk)
Returns the index of the primary key field in the self.concrete_fields
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/options.py/Options.pk_index