updated enricosuplico_music file

parent 32f6ffa0
...@@ -37,6 +37,7 @@ INSTALLED_APPS = [ ...@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'homepage.apps.HomepageConfig'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -13,5 +13,5 @@ class Album(models.Model): ...@@ -13,5 +13,5 @@ class Album(models.Model):
class Song(models.Model): class Song(models.Model):
song_title = models.CharField(max_length = 50, unique = True) song_title = models.CharField(max_length = 50, unique = True)
artist = models.ForeignKey(Artist, on_delete = models.CASCADE) artist = models.ForeignKey(Artist, on_delete = models.CASCADE)
album = models.ForeignKey(album, on_delete = models.CASCADE) album = models.ForeignKey(Album, on_delete = models.CASCADE)
song_length = models.IntegerField song_length = models.IntegerField
\ 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