def __unicode__(self):
        if self.id and self.name:
            return '%i - %s' % (self.id, self.name)
        elif self.id:
            return str(self.id)
        else:
            return self.name
dataset/ETHPy150Open bretth/django-pq/pq/flow.py/FlowStore.__unicode__/original