Add style to tracks.
[demoscenemusic.git] / data / models.py
index 482e987..da15ab5 100644 (file)
@@ -62,9 +62,16 @@ class RemixArtist(models.Model):
        class Meta:
                ordering = ['order']
 
+class Style(models.Model):
+       name = models.CharField(max_length = 80)
+
+       def __unicode__(self):
+               return self.name
+
 class Track(models.Model):
        name = models.CharField(max_length = 150)
        artists = models.ManyToManyField(Artist, through = TrackArtist)
+       styles = models.ManyToManyField(Style, blank = True)
        remix = models.CharField(max_length = 80, blank = True)
        remixArtists = models.ManyToManyField(Artist, through = RemixArtist, related_name = 'remixTracks')
        releases = models.ManyToManyField(Release)