Update models.py

parent 3b9cd525
...@@ -11,7 +11,7 @@ class Artist(models.Model): ...@@ -11,7 +11,7 @@ class Artist(models.Model):
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length=100) album_name = models.CharField(max_length=100)
artist = models.ForeignKey(Artist, on_delete=models.CASCADE) artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
description = models.IntegerField() description = models.CharField(max_length=200)
release_date = models.CharField(max_length=100) release_date = models.CharField(max_length=100)
label = models.CharField(max_length=100, null = True) label = models.CharField(max_length=100, null = True)
song_count = models.PositiveIntegerField() song_count = models.PositiveIntegerField()
......
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