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

add plurals for model classes

parent 02d89567
......@@ -36,6 +36,9 @@ class Bibliography(models.Model):
self.biblio_year = pubmed_info['biblio_year']
super(Bibliography, self).save(*args, **kwargs)
class Meta:
verbose_name_plural = "bibliographies"
class BibliographyForm(ModelForm):
class Meta:
model = Bibliography
......@@ -44,6 +47,8 @@ class BibliographyForm(ModelForm):
class Taxonomy(models.Model):
taxonomy_id = models.DecimalField('NCBI TaxID', unique=True, max_digits=4, decimal_places=0)
name = models.CharField('Organism name', max_length=200)
class Meta:
verbose_name_plural = "taxonomies"
class MolecularFunction(models.Model):
go_id = models.CharField('Gene Ontology ID', unique=True, max_length=10) # GO term id format: 'GO:0000000'
......@@ -71,6 +76,9 @@ class BindingSite(models.Model):
class Complex(models.Model):
protein_id = models.ForeignKey('Protein')
copy_nb = models.IntegerField('Number of copies')
class Meta:
verbose_name_plural = "complexes"
class Ppi(models.Model):
complex_id_1 = models.ForeignKey(Complex, related_name='cplx_id_1')
......
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