From: David ‘Bombe’ Roden Date: Thu, 9 May 2013 20:40:40 +0000 (+0200) Subject: Build better artist names. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4e8fed607395bf793b416746dd82fd6e4fd38c3c;p=demoscenemusic.git Build better artist names. --- 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)