projects
/
demoscenemusic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1dbafd
)
Build better artist names.
author
David ‘Bombe’ Roden
<bombe@demoscenemusic.org>
Thu, 9 May 2013 20:40:40 +0000
(22:40 +0200)
committer
David ‘Bombe’ Roden
<bombe@demoscenemusic.org>
Thu, 9 May 2013 20:40:40 +0000
(22:40 +0200)
data/models.py
patch
|
blob
|
history
diff --git
a/data/models.py
b/data/models.py
index
58bb974
..
5e0cc94
100644
(file)
--- 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)