From fce2cbad049fb45d1aab7fadd1e9d9fd99878ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Mon, 12 Jun 2017 14:01:02 +0200 Subject: [PATCH] set str representation for MDDRCompoundImport model Former-commit-id: c0e7a23d6eecbd553815db5d4d25a2ad4046aae4 --- ippisite/ippidb/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ippisite/ippidb/models.py b/ippisite/ippidb/models.py index 2b188a84..43496e76 100644 --- a/ippisite/ippidb/models.py +++ b/ippisite/ippidb/models.py @@ -288,6 +288,9 @@ class MDDRCompoundImport(models.Model): unique_together = (('mddr_name', 'dvpmt_phase', 'canonical_smile'),) verbose_name_plural = "MDDR compound imports" + def __str__(self): + return "{}, {}".format(self.mddr_name, self.dvpmt_phase) + class MDDRSimilarity(models.Model): canonical_smile_ippidb = models.CharField('Canonical Smile for IPPIDB compound', max_length=500, unique=True, blank=True, null=True) canonical_smile_mddr = models.CharField('Canonical Smile for MDDR Compound', max_length=500, unique=True, blank=True, null=True) -- GitLab