Source

indie-community / gamedb / models.py

Diff from to

gamedb/models.py

         if self.known_as == '':
             self.known_as = self.owner.username
         return super(Writer, self).save(**kwargs)
+    @models.permalink
+    def get_absolute_url(self):
+        return ('writer_detail', [self.pk])
 
 class Artist(models.Model):
     owner = models.ForeignKey(User, blank=True, null=True, help_text='Is this artist part of this community?')
         if self.known_as == '':
             self.known_as = self.owner.username
         return super(Artist, self).save(**kwargs)
+    @models.permalink
+    def get_absolute_url(self):
+        return ('artist_detail', [self.pk])
 
 class Composer(models.Model):
     owner = models.ForeignKey(User, blank=True, null=True, help_text='Is this composer part of this community?')
         if self.known_as == '':
             self.known_as = self.owner.username
         return super(Composer, self).save(**kwargs)
+    @models.permalink
+    def get_absolute_url(self):
+        return ('composer_detail', [self.pk])
 
 class GameDownload(models.Model):
     GAME_WORKFLOW = (