From: Guillaume Pellerin Date: Thu, 22 Sep 2016 14:48:29 +0000 (+0200) Subject: Fix topic list display X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1b6cc2593e446f5671bb2cec12cce21dd7b033a0;p=mezzo.git Fix topic list display --- 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):