Commit e9dbc970 authored by Jose Gabriel L. Salas's avatar Jose Gabriel L. Salas

updated the classes/fields with default values

parent 8962b231
......@@ -4,8 +4,8 @@ from django.db import models
class Artist(models.Model):
artist_name = models.CharField(max_length=50)
monthly_listeners = models.IntegerField()
birth_name = models.CharField(max_length=50)
bio = models.CharField(max_length=700)
birth_name = models.CharField(max_length=50, blank=True)
bio = models.CharField(max_length=700, blank=True)
class Album(models.Model):
......@@ -14,8 +14,8 @@ class Album(models.Model):
related_name='album')
description = models.CharField(max_length=1000)
release_date = models.CharField(max_length=50)
label = models.CharField(max_length=50)
song_count = models.IntegerField()
label = models.CharField(max_length=50, blank=True)
song_count = models.IntegerField(default='0')
class Song(models.Model):
......@@ -24,5 +24,5 @@ class Song(models.Model):
related_name='song')
album = models.ForeignKey(Album, on_delete=models.CASCADE)
song_length = models.IntegerField()
music_video = models.BooleanField()
lyrics = models.CharField(max_length=6500)
music_video = models.BooleanField(default=None)
lyrics = models.CharField(max_length=6500, blank=True)
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