Commit e0bba382 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

further work on data models, based on latest meetings

parent 57543375
No preview for this file type
from django.contrib import admin
from .models import *
from django.apps import apps
admin.site.register(Bibliography)
admin.site.register(Taxonomy)
admin.site.register(MolecularFunction)
admin.site.register(Protein)
admin.site.register(Domain)
admin.site.register(BindingSite)
admin.site.register(Complex)
admin.site.register(Ppi)
admin.site.register(PpiArchitecture)
for model in apps.get_app_config('ippidb').models.values():
admin.site.register(model)
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-21 16:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ippidb', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Disease',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('disease_name', models.CharField(db_column='Disease', max_length=30)),
('ppi_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ippidb.Ppi')),
],
),
migrations.AlterModelOptions(
name='bibliography',
options={'verbose_name_plural': 'bibliographies'},
),
migrations.AlterModelOptions(
name='complex',
options={'verbose_name_plural': 'complexes'},
),
migrations.AlterModelOptions(
name='taxonomy',
options={'verbose_name_plural': 'taxonomies'},
),
migrations.AlterField(
model_name='domain',
name='domainfamily',
field=models.CharField(max_length=25, verbose_name='Domain family'),
),
]
This diff is collapsed.
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