add annotaitan to model
This commit is contained in:
@@ -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'),
|
||||
),
|
||||
]
|
||||
@@ -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=
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends 'anatomy/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div id="dicom-element" data-url="{{ question.image.url}}" />
|
||||
<div class="question">
|
||||
<div class="date">
|
||||
{{ question.created_date }}
|
||||
|
||||
Reference in New Issue
Block a user