.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.1.3 on 2021-02-25 18:16
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('generic', '0009_contrast'),
|
||||
('longs', '0027_longseries_plane'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='longseries',
|
||||
name='contrast',
|
||||
field=models.ForeignKey(help_text='MRI / CT contrast', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='series_contrast', to='generic.contrast'),
|
||||
),
|
||||
]
|
||||
+8
-1
@@ -25,7 +25,7 @@ from helpers.images import image_as_base64
|
||||
|
||||
from anatomy.models import Modality
|
||||
|
||||
from generic.models import Examination, Condition, Sign, ExamBase, Plane
|
||||
from generic.models import Examination, Condition, Sign, ExamBase, Plane, Contrast
|
||||
|
||||
# from generic.models import Examination, Site, Condition, Sign
|
||||
|
||||
@@ -194,6 +194,13 @@ class LongSeries(models.Model):
|
||||
on_delete=models.SET_NULL,
|
||||
null=True,
|
||||
)
|
||||
contrast = models.ForeignKey(
|
||||
Contrast,
|
||||
help_text="MRI / CT contrast",
|
||||
related_name="series_contrast",
|
||||
on_delete=models.SET_NULL,
|
||||
null=True,
|
||||
)
|
||||
long = models.ManyToManyField(
|
||||
"Long",
|
||||
help_text="The question(s) this series should be associated with",
|
||||
|
||||
Reference in New Issue
Block a user