2👍
✅
If I have understood you correctly then the following should produce the result that you are looking for (but you’ll need to edit the attribute names):
def __unicode__(self):
return u"{0} ({1}, {2})".format(self.icon, self.attrib1, self.attrib2)
👤cEz
Source:stackexchange.com