diff --git a/rapids/models.py b/rapids/models.py index 996a56a2..b59f5801 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -39,7 +39,7 @@ def image_directory_path(instance, filename): def get_answer_compare(s): s = s.strip().lower() - s = s.translate(str.maketrans('', '', s.punctuation.replace("#", ""))) + s = s.translate(str.maketrans('', '', string.punctuation.replace("#", ""))) return s class Abnormality(models.Model):