def __str__(self):
		return self.name or \
			str(self.device_id or "") or \
			"%s for %s" % (self.__class__.__name__, self.user or "unknown user")
dataset/ETHPy150Open jleclanche/django-push-notifications/push_notifications/models.py/Device.__str__/original