Skip to content
Snippets Groups Projects
Commit 673ae148 authored by Andrew Waterhouse's avatar Andrew Waterhouse
Browse files

Add some data from latest SMTL

parent 5a783175
Branches
Tags
No related merge requests found
......@@ -5,6 +5,8 @@ from django.db import models
class Biounit(models.Model):
class Meta: # Optional but
db_table = 'biounits' # Recommended, name your DB table
def __unicode__(self): # Optional
return self.smtl_id # returns unicode representation of this object
smtl_id = models.CharField(max_length=10)
title = models.TextField()
......@@ -13,6 +15,8 @@ class Biounit(models.Model):
class Ligand(models.Model):
class Meta: # Optional but
db_table = 'ligands' # Recommended, name your DB table
def __unicode__(self): # Optional
return self.shortname # returns unicode representation of this object
biounit = models.ForeignKey(Biounit)
shortname = models.CharField(max_length=3)
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment