From 1b6cc2593e446f5671bb2cec12cce21dd7b033a0 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 22 Sep 2016 16:48:29 +0200 Subject: [PATCH] Fix topic list display --- app/organization/projects/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/organization/projects/models.py b/app/organization/projects/models.py index 9c82bddb..c39e8230 100644 --- a/app/organization/projects/models.py +++ b/app/organization/projects/models.py @@ -54,6 +54,12 @@ class ProjectTopic(Named): verbose_name = _('project topic') ordering = ['name',] + def __str__(self): + if self.parent: + return ' - '.join((self.parent.name, self.name)) + else: + return self.name + class ProjectProgram(Named): -- 2.39.5