.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Generated by Django 3.1.3 on 2021-02-02 19:46
|
||||
# Generated by Django 3.1.3 on 2021-02-04 22:55
|
||||
|
||||
from django.conf import settings
|
||||
import django.core.files.storage
|
||||
@@ -7,7 +7,6 @@ import django.db.models.deletion
|
||||
import django.utils.timezone
|
||||
import longs.models
|
||||
import sortedm2m.fields
|
||||
import tagulous.models.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -20,23 +19,18 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Examination',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('examination', models.CharField(max_length=200)),
|
||||
],
|
||||
options={
|
||||
'ordering': ('examination',),
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Long',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('question', models.TextField(blank=True, null=True)),
|
||||
('history', models.TextField(blank=True, null=True)),
|
||||
('feedback', models.TextField(blank=True, null=True)),
|
||||
('sign', models.CharField(blank=True, max_length=255)),
|
||||
('model_observations', models.TextField(blank=True, null=True)),
|
||||
('model_interpretation', models.TextField(blank=True, null=True)),
|
||||
('model_principle_diagnosis', models.TextField(blank=True, null=True)),
|
||||
('model_differential_diagnosis', models.TextField(blank=True, null=True)),
|
||||
('model_further_management', models.TextField(blank=True, null=True)),
|
||||
('verified', models.BooleanField(default=False)),
|
||||
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
||||
('published_date', models.DateTimeField(blank=True, null=True)),
|
||||
@@ -49,35 +43,11 @@ class Migration(migrations.Migration):
|
||||
name='LongSeries',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('examination', models.ForeignKey(help_text='Name of the examination', null=True, on_delete=django.db.models.deletion.SET_NULL, to='longs.examination')),
|
||||
('long', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='long', to='longs.long')),
|
||||
('description', models.TextField(blank=True, help_text='Description of stack, for admin organisation')),
|
||||
('long', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='series', to='longs.long')),
|
||||
('modality', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='series_modality', to='anatomy.modality')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Site',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('site', models.CharField(max_length=200)),
|
||||
('initials', models.CharField(max_length=200)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Sign',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=255, unique=True)),
|
||||
('slug', models.SlugField()),
|
||||
('count', models.IntegerField(default=0, help_text='Internal counter of how many times this tag is in use')),
|
||||
('protected', models.BooleanField(default=False, help_text='Will not be deleted when the count reaches 0')),
|
||||
],
|
||||
options={
|
||||
'ordering': ('name',),
|
||||
'abstract': False,
|
||||
'unique_together': {('slug',)},
|
||||
},
|
||||
bases=(tagulous.models.models.BaseTagModel, models.Model),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Note',
|
||||
fields=[
|
||||
@@ -94,7 +64,7 @@ class Migration(migrations.Migration):
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('image', models.ImageField(storage=django.core.files.storage.FileSystemStorage(base_url='/media/longs/', location='/home/ross/scripts/sites/rad/media//longs/'), upload_to=longs.models.image_directory_path)),
|
||||
('position', models.IntegerField(default=0)),
|
||||
('series', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='series', to='longs.longseries')),
|
||||
('series', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='images', to='longs.longseries')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
@@ -102,14 +72,8 @@ class Migration(migrations.Migration):
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('author', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='long_default', to=settings.AUTH_USER_MODEL)),
|
||||
('site', models.ManyToManyField(blank=True, default=1, help_text='Default site to use when creating a new long', to='longs.Site')),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='long',
|
||||
name='site',
|
||||
field=models.ManyToManyField(blank=True, default=1, help_text='If we know the source of the image', to='longs.Site'),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Exam',
|
||||
fields=[
|
||||
@@ -122,29 +86,15 @@ class Migration(migrations.Migration):
|
||||
('exam_questions', sortedm2m.fields.SortedManyToManyField(blank='true', help_text=None, related_name='exams', to='longs.Long')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Condition',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=255, unique=True)),
|
||||
('slug', models.SlugField()),
|
||||
('count', models.IntegerField(default=0, help_text='Internal counter of how many times this tag is in use')),
|
||||
('protected', models.BooleanField(default=False, help_text='Will not be deleted when the count reaches 0')),
|
||||
],
|
||||
options={
|
||||
'ordering': ('name',),
|
||||
'abstract': False,
|
||||
'unique_together': {('slug',)},
|
||||
},
|
||||
bases=(tagulous.models.models.BaseTagModel, models.Model),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='CidUserAnswer',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('normal', models.BooleanField(default=False)),
|
||||
('answer', models.TextField(blank=True, max_length=500)),
|
||||
('answer_compare', models.TextField(blank=True, max_length=500)),
|
||||
('answer_observations', models.TextField(blank=True, null=True)),
|
||||
('answer_interpretation', models.TextField(blank=True, null=True)),
|
||||
('answer_principle_diagnosis', models.TextField(blank=True, null=True)),
|
||||
('answer_differential_diagnosis', models.TextField(blank=True, null=True)),
|
||||
('answer_further_management', models.TextField(blank=True, null=True)),
|
||||
('cid', models.BigIntegerField(blank=True, help_text='Candidate ID (limitied by BigIntegerField size)', null=True)),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('updated', models.DateTimeField(auto_now=True)),
|
||||
|
||||
Reference in New Issue
Block a user