def __str__(self): """Return notifications as string""" string = "Notification subject: %s (%s)\n%s" return string % (self.subject, self.status, emoji_remove(self.body))
def __str__(self): """Return Yak as string""" string = "%s (%d upvotes)" message = helper.emoji_remove(self.message) return string % (message, self.likes)
def __str__(self): """Return comment as string""" return "%s (%d)" % (helper.emoji_remove(self.comment), self.likes)