further improve anatomy questions
This commit is contained in:
@@ -329,6 +329,12 @@ class Answer(models.Model):
|
||||
self.answer = self.answer.strip()
|
||||
self.answer_compare = get_answer_compare(self.answer)
|
||||
|
||||
def can_edit(self, user):
|
||||
"""Check if user can edit the answer
|
||||
|
||||
This just mirrors the result from the attached question"""
|
||||
return self.question.can_edit(user)
|
||||
|
||||
# def get_compare_string(self):
|
||||
# s = self.answer.lower().strip()
|
||||
# s = s.translate(str.maketrans('', '', string.punctuation))
|
||||
|
||||
Reference in New Issue
Block a user