def get_id(self):
        """
        Return the primary key for the model instance. If the
        model is unsaved, then this value will be ``None``.
        """
        try:
            return getattr(self, self._primary_key)
        except __HOLE__:
            return None
dataset/ETHPy150Open coleifer/walrus/walrus/models.py/Model.get_id