From a124ce3f00d8b77877a1f7f198d354b5a3b97c3c Mon Sep 17 00:00:00 2001 From: Daniel Muremwa Mburu Date: Mon, 1 May 2023 13:28:03 +0300 Subject: [PATCH] minor changes --- notes/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notes/views.py b/notes/views.py index a24944f..283f777 100644 --- a/notes/views.py +++ b/notes/views.py @@ -7,7 +7,7 @@ from django.shortcuts import redirect, reverse, get_object_or_404, render from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin -from django.core.exceptions import PermissionDenied, MultipleObjectsReturned +from django.core.exceptions import PermissionDenied from django.db.models import ObjectDoesNotExist from django.contrib.auth.models import User from django.views import generic, View @@ -287,7 +287,6 @@ def _process_comment(self, comment_text): """Takes a comment or reply and returns a markdown version with links to all tagged users""" mentioned = [] split_comment = comment_text.split(" ") - new_comment = comment_text for k, text in enumerate(split_comment): if re.search(r'@\w+', text):