This commit is contained in:
Ross
2021-02-05 10:01:21 +00:00
parent 85b5b5d7ac
commit a3a291388a
2 changed files with 22 additions and 2 deletions
@@ -0,0 +1,20 @@
# Generated by Django 3.1.3 on 2021-02-05 09:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('generic', '0001_initial'),
('longs', '0006_auto_20210205_0958'),
]
operations = [
migrations.AddField(
model_name='longseries',
name='examination',
field=models.ForeignKey(help_text='Name of the examination', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='series_examination', to='generic.examination'),
),
]
+2 -2
View File
@@ -125,8 +125,8 @@ class LongSeriesImage(models.Model):
class LongSeries(models.Model):
modality = models.ForeignKey(Modality, related_name="series_modality", on_delete=models.SET_NULL, null=True)
#examination = models.ForeignKey(
# Examination, help_text="Name of the examination", related_name="series_examination", on_delete=models.SET_NULL, null=True)
examination = models.ForeignKey(
Examination, help_text="Name of the examination", related_name="series_examination", on_delete=models.SET_NULL, null=True)
long = models.ForeignKey("Long", related_name="series", on_delete=models.SET_NULL, null=True)
description = models.TextField(blank=True, help_text="Description of stack, for admin organisation")