Commit 9a0b9aeb authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

correct CellLine to not remove TestActivityDescription upon delete

parent 8b8ee8b8
# Generated by Django 2.2.1 on 2020-04-19 20:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ippidb', '0048_auto_20200417_1001'),
]
operations = [
migrations.AlterField(
model_name='testactivitydescription',
name='cell_line',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='ippidb.CellLine'),
),
]
......@@ -1039,7 +1039,7 @@ class TestActivityDescription(models.Model):
verbose_name="Total number of active compounds"
)
cell_line = models.ForeignKey(
CellLine, on_delete=models.CASCADE, blank=True, null=True
CellLine, on_delete=models.SET_NULL, null=True
)
def get_complexes(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment