Commit 5c79c170 authored by Jayson Lim's avatar Jayson Lim

Fixed the Field options of certain attributes

parent c6d22020
......@@ -3,7 +3,7 @@ from django.db import models
class Artist(models.Model):
artist_name = models.CharField(max_length=255)
monthly_listeners = models.IntegerField()
birth_name = models.CharField(max_length=255)
birth_name = models.CharField(max_length=255, default=True)
bio = models.TextField(null=True, blank=True)
class Album(models.Model):
......@@ -11,8 +11,8 @@ class Album(models.Model):
artist = models.CharField(max_length=255)
description = models.CharField(max_length=255)
release_date = models.CharField(max_length=255)
label = models.CharField(max_length=255)
song_count = models.IntegerField()
label = models.CharField(max_length=255,default=True)
song_count = models.IntegerField(default=True)
class Song(models.Model):
song_title = models.CharField(max_length=255)
......@@ -21,5 +21,3 @@ class Song(models.Model):
song_length = models.IntegerField()
music_video = models.BooleanField(default=True)
lyrics = models.TextField(null=True, blank=True)
# Create your models here.
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