.
This commit is contained in:
+3
-3
@@ -30,7 +30,7 @@ class AtlasAdminForm(ModelForm):
|
||||
"description",
|
||||
"history",
|
||||
"sign",
|
||||
"findings",
|
||||
#"findings",
|
||||
"author",
|
||||
"series",
|
||||
]
|
||||
@@ -39,8 +39,8 @@ class AtlasAdminForm(ModelForm):
|
||||
# "normal": RadioSelect(
|
||||
# choices=[(True, 'Yes'),
|
||||
# (False, 'No')])
|
||||
"findings": TinyMCE(attrs={"cols": 80, "rows": 30}),
|
||||
"mark_scheme": TinyMCE(attrs={"cols": 80, "rows": 30}),
|
||||
#"findings": TinyMCE(attrs={"cols": 80, "rows": 30}),
|
||||
#"mark_scheme": TinyMCE(attrs={"cols": 80, "rows": 30}),
|
||||
}
|
||||
|
||||
|
||||
|
||||
+4
-4
@@ -144,9 +144,9 @@ class CaseForm(ModelForm):
|
||||
"subspecialty",
|
||||
"description",
|
||||
"history",
|
||||
"findings",
|
||||
#"findings",
|
||||
"condition",
|
||||
"sign",
|
||||
#"sign",
|
||||
"open_access",
|
||||
]
|
||||
# fields = ['question', 'findings', 'subspecialty', 'references']
|
||||
@@ -154,8 +154,8 @@ class CaseForm(ModelForm):
|
||||
# "normal": RadioSelect(
|
||||
# choices=[(True, 'Yes'),
|
||||
# (False, 'No')])
|
||||
"findings": TinyMCE(attrs={"cols": 80, "rows": 20}),
|
||||
"mark_scheme": TinyMCE(attrs={"cols": 80, "rows": 30}),
|
||||
#"findings": TinyMCE(attrs={"cols": 80, "rows": 20}),
|
||||
#"mark_scheme": TinyMCE(attrs={"cols": 80, "rows": 30}),
|
||||
"description": Textarea(attrs={"cols": 80, "rows": 5}),
|
||||
"history": Textarea(attrs={"cols": 80, "rows": 5}),
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
# Generated by Django 3.2.4 on 2021-11-28 16:22
|
||||
|
||||
import atlas.models
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('atlas', '0006_auto_20211128_1448'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Finding',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('primary_name', models.BooleanField(default='True')),
|
||||
('synonym', models.ManyToManyField(blank=True, related_name='_atlas_finding_synonym_+', to='atlas.Finding')),
|
||||
],
|
||||
bases=(atlas.models.SynMixin, models.Model),
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='case',
|
||||
name='findings',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='case',
|
||||
name='description',
|
||||
field=models.TextField(blank=True, help_text='Description of the case'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='series',
|
||||
name='description',
|
||||
field=models.TextField(blank=True, help_text='Description of stack'),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SeriesFindings',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('description', models.TextField(blank=True, help_text='Findings on the series / stack', null=True)),
|
||||
('annotation_json', models.TextField(blank=True, null=True)),
|
||||
('findings', models.ManyToManyField(blank=True, to='atlas.Finding')),
|
||||
('series', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='findings', to='atlas.series')),
|
||||
],
|
||||
),
|
||||
]
|
||||
+5
-2
@@ -134,7 +134,7 @@ class Case(models.Model):
|
||||
|
||||
history = models.TextField(null=True, blank=True)
|
||||
|
||||
findings = models.TextField(null=True, blank=True)
|
||||
#findings = models.TextField(null=True, blank=True)
|
||||
|
||||
#subspecialty = models.CharField(max_length=2, choices=SubspecialtyChoices.choices)
|
||||
subspecialty = models.ManyToManyField(Subspecialty, blank=True)
|
||||
@@ -210,6 +210,9 @@ class SeriesFindings(models.Model):
|
||||
series = models.ForeignKey(
|
||||
"Series", related_name="findings", on_delete=models.SET_NULL, null=True
|
||||
)
|
||||
description = models.TextField(null=True, blank=True, help_text="Findings on the series / stack")
|
||||
findings = models.ManyToManyField(Finding, blank=True)
|
||||
annotation_json = models.TextField(null=True, blank=True)
|
||||
|
||||
@reversion.register
|
||||
class Series(models.Model):
|
||||
@@ -253,7 +256,7 @@ class Series(models.Model):
|
||||
related_name="series",
|
||||
)
|
||||
|
||||
findings = models.TextField(null=True, blank=True, help_text="Findings on the series / stack")
|
||||
#findings = models.TextField(null=True, blank=True, help_text="Findings on the series / stack")
|
||||
|
||||
open_access = models.BooleanField(
|
||||
help_text="If a question should be freely available to browse", default=True
|
||||
|
||||
Reference in New Issue
Block a user