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