def __unicode__(self):

        if hasattr(self, 'name'):
            return "%s" % self.name
        elif hasattr(self, '__unicode__'):
            # return super(BaseModel, self).__unicode__()
            return self.__unicode__()
dataset/ETHPy150Open globocom/database-as-a-service/dbaas/util/models.py/BaseModel.__unicode__/original