def _get_related_name(self):
        if self._related_name and callable(self._related_name):
            return self._related_name(self)
        return self._related_name or ('%s_set' % self.model_class._meta.name)
dataset/ETHPy150Open coleifer/peewee/peewee.py/ForeignKeyField._get_related_name/original