def get_objects_name(self):
        try:
            profile = self.profile_list
            return "User: %s" % profile.username
        except ObjectDoesNotExist:
            pass
        try:
            book = self.book_list
            return "Book: \"%s\", author: %s" % (book.name, book.default_author.username)
        except ObjectDoesNotExist:
            pass
        try:
            post = self.post_list
            return "Post: \"%s\", author: %s" % (post.title, post.author.username)
        except __HOLE__:
            pass
        try:
            comment = self.comment_list
            return "Comment: \"%s\", author %s" % (comment.comment[:50], comment.user.username)
        except ObjectDoesNotExist:
            pass
        return "<No info>"
dataset/ETHPy150Open ProstoKSI/django-voter/voter/models.py/Rating.get_objects_name