migrate to use image id in model

This commit is contained in:
Ross
2024-10-07 09:28:43 +01:00
parent 6f96f79303
commit d1249f14d8
2 changed files with 20 additions and 1 deletions
@@ -0,0 +1,18 @@
# Generated by Django 5.0.2 on 2024-10-07 08:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('atlas', '0060_seriesfinding_current_image_id_index'),
]
operations = [
migrations.AlterField(
model_name='seriesfinding',
name='current_image_id_index',
field=models.TextField(blank=True, null=True),
),
]
+2 -1
View File
@@ -597,7 +597,8 @@ class SeriesFinding(models.Model):
conditions = models.ManyToManyField(Condition, blank=True)
annotation_json = models.TextField(null=True, blank=True)
viewport_json = models.TextField(null=True, blank=True)
current_image_id_index = models.IntegerField(null=True, blank=True)
# This has been migrated to install the image id (not index)
current_image_id_index = models.TextField(null=True, blank=True)
def __str__(self) -> str:
findings = self.findings.all().values_list("name")