From 2e555b0b062c62dbafc3d8e8b78bd1613611902b Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 26 Nov 2020 18:31:59 +0000 Subject: [PATCH] fix thumbnails --- anatomy/templates/anatomy/exam_overview.html | 2 +- rad/settings.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/anatomy/templates/anatomy/exam_overview.html b/anatomy/templates/anatomy/exam_overview.html index 2afff880..dcba616a 100644 --- a/anatomy/templates/anatomy/exam_overview.html +++ b/anatomy/templates/anatomy/exam_overview.html @@ -12,7 +12,7 @@
    {% for question in questions.all %} -
  1. {{ question }}thumbailthumbail
  2. +
  3. {{ question }}thumbail
  4. {% endfor %}
JSON diff --git a/rad/settings.py b/rad/settings.py index 5d37ff45..27cd4cf7 100644 --- a/rad/settings.py +++ b/rad/settings.py @@ -186,3 +186,9 @@ CACHES = { 'LOCATION': '/var/tmp/django_cache', } } + +THUMBNAIL_ALIASES = { + '': { + 'exam-list': {'size': (50, 50), 'crop': True}, + }, +} \ No newline at end of file