def __str__(self):
    return '\n\n\t{0}: {1}\n\t\t{2}'.format(self.code, self.summary, self.detail)
def __str__(self):
    return '\n\n\t{0}: {1}\n\t\t{2}'.format(self.code, self.summary, self.detail)