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

adapt admin lists and create migration for nb_pockets change

parent 390ca7c0
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -20,8 +20,8 @@ class DomainAdmin(admin.ModelAdmin):
@admin.register(ProteinDomainBoundComplex)
class ProteinDomainBoundComplexAdmin(admin.ModelAdmin):
list_display = ('protein', 'domain', 'ppc_copy_nb', 'ppp_copy_nb_per_p', 'pockets_nb')
list_display_links = ('protein', 'domain', 'ppc_copy_nb', 'ppp_copy_nb_per_p', 'pockets_nb')
list_display = ('protein', 'domain', 'ppc_copy_nb', 'ppp_copy_nb_per_p')
list_display_links = ('protein', 'domain', 'ppc_copy_nb', 'ppp_copy_nb_per_p')
@admin.register(ProteinDomainPartnerComplex)
class ProteinDomainPartnerComplexAdmin(admin.ModelAdmin):
......
......@@ -223,7 +223,12 @@ select distinct protein.NumUniprot, domain.PfamNumAccession , complexe.NbCopy,
compound.is_macrocycle = (row[4]=='Y')
compound.aromatic_ratio = row[5]
compound.balaban_index = row[6]
compound.balaban_index = row[6]
compound.fsp3 = row[7] #Csp3Ratio
compound.gc_molar_refractivity=row[10] #GCMolarRefractivity
compound.log_d = row[13] #LogD
compound.a_log_p = row[14] #ALogP
compound.mean_atom_vol_vdw = row[15] #MeanAtomVolVdW
compound.molecular_weight = row[16]
compound.save()
except Exception as e:
if options['stoponfail']:
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-19 12:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ippidb', '0013_auto_20170518_1943'),
]
operations = [
migrations.RemoveField(
model_name='proteindomainboundcomplex',
name='pockets_nb',
),
migrations.AddField(
model_name='ppi',
name='pockets_nb',
field=models.IntegerField(default=1, verbose_name='Total number of pockets in the complex'),
),
]
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