diff --git a/ippisite/ippidb/migrations/0030_auto_20190702_0905.py b/ippisite/ippidb/migrations/0030_auto_20190702_0905.py new file mode 100644 index 0000000000000000000000000000000000000000..0e4007a4bdc16a349767ad96392838aeb4c325fc --- /dev/null +++ b/ippisite/ippidb/migrations/0030_auto_20190702_0905.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.1 on 2019-07-02 09:05 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ippidb', '0029_auto_20190605_0606'), + ] + + operations = [ + migrations.AlterField( + model_name='protein', + name='gene_name', + field=models.CharField(max_length=30, verbose_name='Gene name'), + ), + ] diff --git a/ippisite/ippidb/models.py b/ippisite/ippidb/models.py index 429dc911a293c62f9c6afb70302ea6e74d462c89..b167850e99938ccd10e0395cb5f5109d31003a24 100644 --- a/ippisite/ippidb/models.py +++ b/ippisite/ippidb/models.py @@ -221,7 +221,7 @@ class Protein(AutoFillableModel): recommended_name_long = models.CharField( 'Uniprot Recommended Name (long)', max_length=75) short_name = models.CharField('Short name', max_length=50) - gene_name = models.CharField('Gene name', unique=True, max_length=30) + gene_name = models.CharField('Gene name', max_length=30) entry_name = models.CharField('Entry name', max_length=30) organism = models.ForeignKey('Taxonomy', models.CASCADE) molecular_functions = models.ManyToManyField(MolecularFunction) @@ -1568,4 +1568,4 @@ def update_compound_cached_properties(): _lipinsky=Case(When(lipinsky_score__gte=3, then=True), default=False, output_field=BooleanField()) ).values('_lipinsky')[:1] ), - ) \ No newline at end of file + )