projects
/
demoscenemusic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b887f95
)
Show the better artist name in track name.
author
David ‘Bombe’ Roden
<bombe@demoscenemusic.org>
Thu, 9 May 2013 20:41:14 +0000
(22:41 +0200)
committer
David ‘Bombe’ Roden
<bombe@demoscenemusic.org>
Thu, 9 May 2013 20:41:14 +0000
(22:41 +0200)
data/models.py
patch
|
blob
|
history
diff --git
a/data/models.py
b/data/models.py
index
f5eacf8
..
11bdc59
100644
(file)
--- 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)