migrate examinations to generic model (and start adding mangament)
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 4.1.4 on 2023-06-19 10:51
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("generic", "0002_modality_examination_modality"),
|
||||
("longs", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.SeparateDatabaseAndState(
|
||||
state_operations=[
|
||||
migrations.AlterField(
|
||||
model_name="longseries",
|
||||
name="modality",
|
||||
field=models.ForeignKey(
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
related_name="series_modality",
|
||||
to="generic.modality",
|
||||
),
|
||||
),
|
||||
],
|
||||
database_operations=[],
|
||||
)
|
||||
]
|
||||
+1
-2
@@ -25,8 +25,6 @@ import string
|
||||
from collections import defaultdict
|
||||
from helpers.images import image_as_base64, pretty_print_dicom
|
||||
|
||||
from anatomy.models import Modality
|
||||
|
||||
from generic.models import (
|
||||
CidUser,
|
||||
CidUserGroup,
|
||||
@@ -41,6 +39,7 @@ from generic.models import (
|
||||
SeriesImageBase,
|
||||
UserAnswerBase,
|
||||
UserUserGroup,
|
||||
Modality
|
||||
)
|
||||
|
||||
# from generic.models import Examination, Site, Condition, Sign
|
||||
|
||||
Reference in New Issue
Block a user