remove single fk
This commit is contained in:
@@ -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
@@ -36,7 +36,7 @@ class Item(models.Model):
|
|||||||
|
|
||||||
rcr_platform_id = models.CharField(max_length=255, unique=True)
|
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")
|
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")
|
oncology_category = models.ForeignKey("OncologyCategory", on_delete=models.SET_NULL, null=True, blank=True, related_name="item_oncology")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user