Changed most CharFields into TextFields

parent 08c0dd7d
...@@ -5,14 +5,14 @@ class Artist(models.Model): ...@@ -5,14 +5,14 @@ class Artist(models.Model):
artist_name = models.CharField(max_length=50) artist_name = models.CharField(max_length=50)
monthly_listeners = models.IntegerField(default=0) monthly_listeners = models.IntegerField(default=0)
birth_name = models.CharField(max_length=50) birth_name = models.CharField(max_length=50)
bio = models.CharField(max_length=700) bio = models.TextField()
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length=50) album_name = models.TextField()
artist = models.ForeignKey(Artist, on_delete=models.CASCADE) artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
description = models.CharField(max_length=200) description = models.TextField()
release_date = models.DateTimeField("date released") release_date = models.DateTimeField("date released")
label = models.CharField(max_length=50) label = models.TextField()
song_count = models.IntegerField(default=0) song_count = models.IntegerField(default=0)
class Song(models.Model): class Song(models.Model):
......
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