remove single fk

This commit is contained in:
Ross
2024-02-26 11:47:42 +00:00
parent fdc7c6150b
commit 1963d0a3ef
2 changed files with 18 additions and 1 deletions
@@ -0,0 +1,17 @@
# Generated by Django 5.0.2 on 2024-02-26 11:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rcr', '0021_auto_20240226_1140'),
]
operations = [
migrations.RemoveField(
model_name='item',
name='radiology_category',
),
]
+1 -1
View File
@@ -36,7 +36,7 @@ class Item(models.Model):
rcr_platform_id = models.CharField(max_length=255, unique=True)
radiology_category = models.ForeignKey("RadiologyCategory", on_delete=models.SET_NULL, null=True, blank=True, related_name="item_radiology")
#radiology_category = models.ForeignKey("RadiologyCategory", on_delete=models.SET_NULL, null=True, blank=True, related_name="item_radiology")
radiology_categories = models.ManyToManyField("RadiologyCategory", blank=True, related_name="items_radiology")
oncology_category = models.ForeignKey("OncologyCategory", on_delete=models.SET_NULL, null=True, blank=True, related_name="item_oncology")