Added binary field to song model #4

This commit is contained in:
amazing-username committed 2019-02-08 18:25:50 +00:00
1 parent b54bcf3368
commit 3cf708485f
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -1,8 +1,9 @@
from django.db import models
class Song(models.Models):
class Song(models.Model):
title = models.CharField(max_length=70)
albumn = models.CharField(max_length=70)
year = models.IntegerField()
genre = models.CharField(max_length=70)
track_number = models.IntegerField()
file = models.BinaryField(editable=True)
+1
View File
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'api',
]
MIDDLEWARE = [