Skip to content
Snippets Groups Projects
Commit e2bc2c8a authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

change model for TestActivityDescription fol. conv. with @osperand

WIP for #27


Former-commit-id: 0a396477406508e1634db8beee067d8885510b1e
parent f209b66f
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-07 13:27
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ippidb', '0026_auto_20171110_1426'),
]
operations = [
migrations.AddField(
model_name='testactivitydescription',
name='is_primary',
field=models.BooleanField(default=False, verbose_name='Is primary'),
preserve_default=False,
),
migrations.AddField(
model_name='testactivitydescription',
name='protein_bound_construct',
field=models.CharField(choices=[('F', 'Full length'), ('U', 'Unspecified')], default='U', max_length=5, verbose_name='Protein bound construct'),
preserve_default=False,
),
migrations.AddField(
model_name='testactivitydescription',
name='protein_domain_bound_complex',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='ippidb.ProteinDomainBoundComplex'),
preserve_default=False,
),
migrations.AlterField(
model_name='protein',
name='organism',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ippidb.Taxonomy'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-07 14:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ippidb', '0027_auto_20180307_1327'),
]
operations = [
migrations.AlterField(
model_name='testactivitydescription',
name='protein_bound_construct',
field=models.CharField(blank=True, choices=[('F', 'Full length'), ('U', 'Unspecified')], max_length=5, null=True, verbose_name='Protein bound construct'),
),
]
...@@ -431,9 +431,16 @@ class TestActivityDescription(models.Model): ...@@ -431,9 +431,16 @@ class TestActivityDescription(models.Model):
('I', 'Inhibition'), ('I', 'Inhibition'),
('S', 'Stabilization') ('S', 'Stabilization')
) )
PROTEIN_BOUND_CONSTRUCTS = (
('F', 'Full length'),
('U', 'Unspecified')
)
biblio = models.ForeignKey(Bibliography, models.CASCADE) biblio = models.ForeignKey(Bibliography, models.CASCADE)
protein_domain_bound_complex = models.ForeignKey(ProteinDomainBoundComplex, models.CASCADE)
ppi = models.ForeignKey(Ppi, models.CASCADE, blank=True, null=True) ppi = models.ForeignKey(Ppi, models.CASCADE, blank=True, null=True)
test_name = models.CharField('Test name', max_length=100) test_name = models.CharField('Test name', max_length=100)
is_primary = models.BooleanField('Is primary')
protein_bound_construct = models.CharField('Protein bound construct', max_length=5, choices=PROTEIN_BOUND_CONSTRUCTS, blank=True, null=True)
test_type = models.CharField('Test type', max_length=5, choices=TEST_TYPES) test_type = models.CharField('Test type', max_length=5, choices=TEST_TYPES)
test_modulation_type = models.CharField( test_modulation_type = models.CharField(
'Test modulation type', max_length=1, choices=TEST_MODULATION_TYPES) 'Test modulation type', max_length=1, choices=TEST_MODULATION_TYPES)
......
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