def __repr__(self):
        try:
            id_ = self.fields.id
        except __HOLE__:
            id_ = 'not saved'
        return '<%s: %s>' % (self.__class__.__name__, id_)
dataset/ETHPy150Open linkyndy/remodel/remodel/models.py/Model.__repr__