Commit 2025f1a8 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

set molecular function description as the default label for object

parent 4885fbe3
......@@ -68,6 +68,9 @@ class MolecularFunction(models.Model):
go_id = models.CharField('Gene Ontology ID', unique=True, max_length=10) # GO term id format: 'GO:0000000'
description = models.CharField('description', max_length=500)
def __str__(self):
return self.description
class Protein(models.Model):
uniprot_id = models.CharField('Uniprot ID', unique=True, max_length=10)
recommended_name_long = models.CharField('Uniprot Recommended Name (long)', max_length=75)
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