def user_name_col(self, comment):
        if comment.user_name:
            return comment.user_name
        elif comment.user_id:
            # Can't do much else here, User model might be custom.
            if sys.version_info[0] >= 3:
                return str(comment.user)
            else:
                return unicode(comment.user)
        else:
            return None
dataset/ETHPy150Open edoburu/django-fluent-comments/fluent_comments/admin.py/FluentCommentsAdmin.user_name_col/original