Completed #9 and changed the http endpoint for uploading a song from upload/song/ to song/upload/

This commit is contained in:
amazing-username
2019-03-05 21:58:21 -05:00
parent a949de27f2
commit d2bb9b17af
3 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -2,8 +2,11 @@ from django.db import models
class Song(models.Model):
title = models.CharField(max_length=70)
albumn = models.CharField(max_length=70)
album = models.CharField(max_length=170)
artist = models.CharField(max_length=100)
year = models.IntegerField()
genre = models.CharField(max_length=70)
duration = models.IntegerField()
track_number = models.IntegerField()
cover = models.BinaryField(editable=True)
file = models.BinaryField(editable=True)