Commit 9d2cd971 authored by Brian Guadalupe's avatar Brian Guadalupe

Remove rating choices

parent e45f1ff1
...@@ -11,20 +11,12 @@ class MusicPlaylist(models.Model): ...@@ -11,20 +11,12 @@ class MusicPlaylist(models.Model):
return self.playlist_name return self.playlist_name
class MusicEntry(models.Model): class MusicEntry(models.Model):
RATING_CHOICES = (
(0,'1'),
(1,'2'),
(2,'3'),
(3,'4'),
(4,'5'),
(5,'6'),
(6,'7'),
(7,'8'),
(8,'9'),
(9,'10')
)
id = models.AutoField(primary_key=True) id = models.AutoField(primary_key=True)
order_in_playlist = models.PositiveSmallIntegerField() order_in_playlist = models.PositiveSmallIntegerField()
rating = models.DecimalField(max_digits=1, decimal_places=0, choices=RATING_CHOICES) rating = models.DecimalField(max_digits=1, decimal_places=0)
playlist = models.ForeignKey(MusicPlaylist) playlist = models.ForeignKey(MusicPlaylist)
song = models.ForeignKey(Song) song = models.ForeignKey(Song)
\ No newline at end of file
class Follows(models.Model):
user = models.ForeignKey(User)
playlist = models.ForeignKey(MusicPlaylist)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment