@classmethod
    def get_row_by_pk(self, ar, pk):
        """Implements :meth:`get_row_by_pk
        <lino.core.actors.Actor.get_row_by_pk>` for a database
        table.

        """
        try:
            return self.model.objects.get(pk=pk)
        except __HOLE__:
            return None
        except self.model.DoesNotExist:
            return None
dataset/ETHPy150Open lsaffre/lino/lino/core/dbtables.py/Table.get_row_by_pk