From 978ce550a7f18a84747a359987a2585b3b6e1684 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 19 Sep 2024 14:55:34 +1000 Subject: [PATCH] migration --- .../stacks/metadata-manager/app/migrations/0001_initial.py | 4 ++-- .../stateless/stacks/metadata-manager/app/models/library.py | 2 +- .../stateless/stacks/metadata-manager/app/models/project.py | 2 +- .../stateless/stacks/metadata-manager/app/models/subject.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/workload/stateless/stacks/metadata-manager/app/migrations/0001_initial.py b/lib/workload/stateless/stacks/metadata-manager/app/migrations/0001_initial.py index b9e88ca85..baf05eabb 100644 --- a/lib/workload/stateless/stacks/metadata-manager/app/migrations/0001_initial.py +++ b/lib/workload/stateless/stacks/metadata-manager/app/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 5.1 on 2024-09-19 01:23 +# Generated by Django 5.1 on 2024-09-19 04:49 import django.core.validators import django.db.models.deletion @@ -205,7 +205,7 @@ class Migration(migrations.Migration): ('type', models.CharField(blank=True, choices=[('10X', 'Ten X'), ('BiModal', 'Bimodal'), ('ctDNA', 'Ct Dna'), ('ctTSO', 'Ct Tso'), ('exome', 'Exome'), ('MeDIP', 'Me Dip'), ('Metagenm', 'Metagenm'), ('MethylSeq', 'Methyl Seq'), ('TSO-DNA', 'TSO_DNA'), ('TSO-RNA', 'TSO_RNA'), ('WGS', 'Wgs'), ('WTS', 'Wts'), ('other', 'Other')], null=True)), ('assay', models.CharField(blank=True, null=True)), ('coverage', models.FloatField(blank=True, null=True)), - ('project_set', models.ManyToManyField(blank=True, null=True, related_name='library_set', to='app.project')), + ('project_set', models.ManyToManyField(blank=True, related_name='library_set', to='app.project')), ('sample', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.sample')), ], options={ diff --git a/lib/workload/stateless/stacks/metadata-manager/app/models/library.py b/lib/workload/stateless/stacks/metadata-manager/app/models/library.py index 3252f0636..c04b95b95 100644 --- a/lib/workload/stateless/stacks/metadata-manager/app/models/library.py +++ b/lib/workload/stateless/stacks/metadata-manager/app/models/library.py @@ -95,7 +95,7 @@ class Library(BaseModel): # Relationships sample = models.ForeignKey(Sample, on_delete=models.SET_NULL, blank=True, null=True) subject = models.ForeignKey(Subject, on_delete=models.SET_NULL, blank=True, null=True) - project_set = models.ManyToManyField(Project, related_name='library_set', blank=True, null=True) + project_set = models.ManyToManyField(Project, related_name='library_set', blank=True) # history history = HistoricalRecords(m2m_fields=[project_set]) diff --git a/lib/workload/stateless/stacks/metadata-manager/app/models/project.py b/lib/workload/stateless/stacks/metadata-manager/app/models/project.py index 85865f9b5..559b66a9f 100644 --- a/lib/workload/stateless/stacks/metadata-manager/app/models/project.py +++ b/lib/workload/stateless/stacks/metadata-manager/app/models/project.py @@ -29,7 +29,7 @@ class Project(BaseModel): ) # Relationships - contact_set = models.ManyToManyField(Contact, related_name='project_set', blank=True, ) + contact_set = models.ManyToManyField(Contact, related_name='project_set', blank=True) # history history = HistoricalRecords(m2m_fields=[contact_set]) diff --git a/lib/workload/stateless/stacks/metadata-manager/app/models/subject.py b/lib/workload/stateless/stacks/metadata-manager/app/models/subject.py index a857bf39b..12114b2b9 100644 --- a/lib/workload/stateless/stacks/metadata-manager/app/models/subject.py +++ b/lib/workload/stateless/stacks/metadata-manager/app/models/subject.py @@ -18,7 +18,7 @@ class Subject(BaseModel): ) # Relationships - individual_set = models.ManyToManyField('Individual', related_name='subject_set', blank=True, ) + individual_set = models.ManyToManyField('Individual', related_name='subject_set', blank=True) # history history = HistoricalRecords(m2m_fields=[individual_set])