From 951bf845d73afc1b66ae30085d27acbc9534ee02 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 21 Jan 2021 18:10:14 +0000 Subject: [PATCH] . --- anatomy/static/css/anatomy.css | 1 + rapids/migrations/0006_auto_20210121_1809.py | 22 ++++++++++++++++++++ rapids/models.py | 4 ++-- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 rapids/migrations/0006_auto_20210121_1809.py diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css index 3edeb1d6..7bd47fdc 100644 --- a/anatomy/static/css/anatomy.css +++ b/anatomy/static/css/anatomy.css @@ -430,6 +430,7 @@ td.user-answer-score-2::after { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); background: rgb(28, 184, 65); padding-right: 10px; + color: white; } .add-popup { diff --git a/rapids/migrations/0006_auto_20210121_1809.py b/rapids/migrations/0006_auto_20210121_1809.py new file mode 100644 index 00000000..772a9e46 --- /dev/null +++ b/rapids/migrations/0006_auto_20210121_1809.py @@ -0,0 +1,22 @@ +# Generated by Django 3.1.3 on 2021-01-21 18:09 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('rapids', '0005_auto_20210121_1806'), + ] + + operations = [ + migrations.RemoveField( + model_name='rapid', + name='examination', + ), + migrations.AddField( + model_name='rapid', + name='examination', + field=models.ManyToManyField(help_text='Name of the (primary) examination', to='rapids.Examination'), + ), + ] diff --git a/rapids/models.py b/rapids/models.py index 8a162130..f73c1eed 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -142,8 +142,8 @@ class Rapid(models.Model): Region, blank=True, help_text="Region of the abnormality (laterality independent)") - examination = models.ForeignKey( - Examination, help_text="Name of the (primary) examination", on_delete=models.SET_NULL, null=True) + examination = models.ManyToManyField( + Examination, help_text="Name of the (primary) examination") laterality = models.CharField( max_length=20, choices=LATERALITY_CHOICES,