.
This commit is contained in:
@@ -22,6 +22,7 @@ from collections import defaultdict
|
||||
from helpers.images import image_as_base64
|
||||
|
||||
import reversion
|
||||
import urllib.parse
|
||||
|
||||
image_storage = FileSystemStorage(
|
||||
# Physical file location ROOT
|
||||
@@ -540,6 +541,8 @@ class UserAnswer(UserAnswerBase):
|
||||
# s = self.answer.lower().strip()
|
||||
# s = s.translate(str.maketrans('', '', string.punctuation))
|
||||
# return s
|
||||
def get_answer_url_safe(self):
|
||||
return urllib.parse.quote(self.answer_compare)
|
||||
|
||||
def get_answer_string(self):
|
||||
return self.answer
|
||||
|
||||
Reference in New Issue
Block a user