diff --git a/LigandWorld/annotator/models.py b/LigandWorld/annotator/models.py index 804b04b282d636d2117aa5ef5bce21e52fd921bb..fdba084fba694037dc06ef3d0207bd2054d772dd 100755 --- a/LigandWorld/annotator/models.py +++ b/LigandWorld/annotator/models.py @@ -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) diff --git a/LigandWorld/db.sqlite3 b/LigandWorld/db.sqlite3 index e852ae1ef27f60ca0980015629e36aa7476ca1c8..a5bd691e80dede1630476320cc6b3d56715755f9 100755 Binary files a/LigandWorld/db.sqlite3 and b/LigandWorld/db.sqlite3 differ