From 8e8d2a6c4e4beb9487e9e168d5e43706eea3da1d 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:41:14 +0200 Subject: [PATCH] Show the better artist name in track name. --- data/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.7.4