diff --git a/anatomy/migrations/0009_anatomyquestion_image_annotations.py b/anatomy/migrations/0009_anatomyquestion_image_annotations.py new file mode 100644 index 00000000..8529e3a6 --- /dev/null +++ b/anatomy/migrations/0009_anatomyquestion_image_annotations.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.3 on 2020-12-06 11:11 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('anatomy', '0008_anatomyquestion_open_access'), + ] + + operations = [ + migrations.AddField( + model_name='anatomyquestion', + name='image_annotations', + field=models.TextField(blank=True, help_text='Stores a JSON representation of annotations to be applied by cornerstonetools'), + ), + ] diff --git a/anatomy/models.py b/anatomy/models.py index b81d0264..6c773d03 100644 --- a/anatomy/models.py +++ b/anatomy/models.py @@ -70,6 +70,8 @@ class AnatomyQuestion(models.Model): image = models.ImageField(upload_to=image_directory_path, storage=image_storage) + image_annotations = models.TextField(blank=True, help_text="Stores a JSON representation of annotations to be applied by cornerstonetools") + description = models.CharField( max_length=400, help_text= diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html index 4e664969..552056b7 100644 --- a/anatomy/templates/anatomy/question_detail.html +++ b/anatomy/templates/anatomy/question_detail.html @@ -1,6 +1,7 @@ {% extends 'anatomy/base.html' %} {% block content %} +
{{ question.created_date }}