fixed models.py

parent a94367b5
...@@ -11,7 +11,7 @@ class Album(models.Model): ...@@ -11,7 +11,7 @@ class Album(models.Model):
artist = models.ForeignKey(Artist, on_delete = models.CASCADE) artist = models.ForeignKey(Artist, on_delete = models.CASCADE)
description = models.TextField(max_length = 500) description = models.TextField(max_length = 500)
release_date = models.CharField(max_length = 50) release_date = models.CharField(max_length = 50)
label = models.CharField(max_length = 50) label = models.CharField(max_length = 50, default = "No label")
song_count = models.IntegerField song_count = models.IntegerField
class Song(models.Model): class Song(models.Model):
...@@ -21,3 +21,4 @@ class Song(models.Model): ...@@ -21,3 +21,4 @@ class Song(models.Model):
song_length = models.IntegerField song_length = models.IntegerField
music_video = models.BooleanField music_video = models.BooleanField
lyrics = models.TextField lyrics = models.TextField
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