Return the better artist name.
authorDavid ‘Bombe’ Roden <bombe@demoscenemusic.org>
Thu, 9 May 2013 20:41:02 +0000 (22:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@demoscenemusic.org>
Thu, 9 May 2013 20:41:02 +0000 (22:41 +0200)
data/models.py

index 5e0cc94..f5eacf8 100644 (file)
@@ -46,7 +46,7 @@ class TrackArtist(models.Model):
        order = models.IntegerField()
 
        def __unicode__(self):
-               return self.artist.name
+               return self.artist.__unicode__()
 
        class Meta:
                ordering = ['order']
@@ -57,7 +57,7 @@ class RemixArtist(models.Model):
        order = models.IntegerField()
 
        def __unicode__(self):
-               return self.artist.name
+               return self.artist.__unicode__()
 
        class Meta:
                ordering = ['order']