From 4e8fed607395bf793b416746dd82fd6e4fd38c3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 9 May 2013 22:40:40 +0200 Subject: [PATCH] Build better artist names. --- data/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/models.py b/data/models.py index 58bb974..5e0cc94 100644 --- a/data/models.py +++ b/data/models.py @@ -15,7 +15,7 @@ class Artist(models.Model): groups = models.ManyToManyField(Group) def __unicode__(self): - return self.name + return "%s%s" % (self.name, (" / %s" % (" ^ ".join(g.shortName if (g.shortName != '') else g.name for g in self.groups.all()), ))) class Party(models.Model): name = models.CharField(max_length = 80) -- 2.7.4