This commit is contained in:
Ross
2025-01-06 11:27:52 +00:00
parent 7b45483870
commit 9bb4d8bc08
3 changed files with 10 additions and 6 deletions
+4
View File
@@ -336,6 +336,10 @@ class Answer(models.Model):
This just mirrors the result from the attached question"""
return self.question.can_edit(user)
def get_answer_url_safe(self):
return urllib.parse.quote(self.answer_compare)
# def get_compare_string(self):
# s = self.answer.lower().strip()
# s = s.translate(str.maketrans('', '', string.punctuation))