From: David ‘Bombe’ Roden Date: Thu, 9 May 2013 20:41:14 +0000 (+0200) Subject: Show the better artist name in track name. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8e8d2a6c4e4beb9487e9e168d5e43706eea3da1d;p=demoscenemusic.git Show the better artist name in track name. --- diff --git a/data/models.py b/data/models.py index f5eacf8..11bdc59 100644 --- a/data/models.py +++ b/data/models.py @@ -73,7 +73,7 @@ class Track(models.Model): def __unicode__(self): #return '%s – %s%s' % (' & '.join(self.artists), self.name, (('%s by %s' % (self.remix, ' & '.join(self.remixArtists) + ')')) if (self.remix != '') else '')) - return u'{1} – {0}'.format(self.name, ' & '.join(a.name for a in self.artists.all())) + return u'{1} – {0}'.format(self.name, ' & '.join(a.artist.__unicode__() for a in self.trackartist_set.all())) class File(models.Model): track = models.ForeignKey(Track)