Commit 23d6a9e2 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

add string representation to ProteinDomainComplex class

parent 8cc0ad4a
......@@ -126,6 +126,9 @@ class ProteinDomainComplex(models.Model):
class Meta:
verbose_name_plural = "complexes"
def __str__(self):
return '{}-{}'.format(self.protein_id, self.domain_id)
class ProteinDomainBoundComplex(ProteinDomainComplex):
ppp_copy_nb_per_p = models.IntegerField('Number of copies of the protein in the pocket')
pockets_nb = models.IntegerField('Total number of pockets in the complex')
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