def get_db_field(self):
        if not isinstance(self.to_field, PrimaryKeyField):
            return self.to_field.get_db_field()
        return super(ForeignKeyField, self).get_db_field()
Reimplemented from :meth:`~AsyncViewBase.on_rows`
dataset/ETHPy150Open coleifer/peewee/peewee.py/ForeignKeyField.get_db_field--crossover with--dataset/ETHPy150Open couchbase/couchbase-python-client/txcouchbase/bucket.py/BatchedRowMixin.on_rows