From 2765d1eaa7a11590901da30fbd0c4bfe475911e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Thu, 14 Mar 2019 15:51:12 +0100 Subject: [PATCH] change display order for CompoundAction model in admin interface fix #60 --- ippisite/ippidb/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ippisite/ippidb/models.py b/ippisite/ippidb/models.py index 9e5c066e..6cb5e995 100644 --- a/ippisite/ippidb/models.py +++ b/ippisite/ippidb/models.py @@ -1208,6 +1208,7 @@ class CompoundAction(models.Model): class Meta: unique_together = (('ppi', 'compound', 'activation_mode', 'ligand_id'),) + ordering = ['compound', 'ppi'] def get_complexes(self): """ -- GitLab