Commit a2022102 authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

Final migrations and populated data

parent 9edcf77c
# Generated by Django 3.2 on 2023-02-23 13:26
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('about', '0002_auto_20230223_2103'),
]
operations = [
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(default=datetime.datetime(2023, 2, 23, 21, 26, 3, 151069)),
),
migrations.AlterField(
model_name='song',
name='song_length',
field=models.TimeField(default=datetime.datetime(2023, 2, 23, 21, 26, 3, 152069)),
),
]
# Generated by Django 3.2 on 2023-02-23 13:28
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('about', '0003_auto_20230223_2126'),
]
operations = [
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(default=datetime.datetime(2023, 2, 23, 21, 28, 11, 339665)),
),
migrations.AlterField(
model_name='song',
name='song_length',
field=models.TimeField(default=datetime.datetime(2023, 2, 23, 21, 28, 11, 340672)),
),
]
# Generated by Django 3.2 on 2023-02-23 14:26
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('about', '0004_auto_20230223_2128'),
]
operations = [
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(default=datetime.datetime(2023, 2, 23, 22, 26, 28, 608294)),
),
migrations.AlterField(
model_name='song',
name='song_length',
field=models.TimeField(default=datetime.datetime(2023, 2, 23, 22, 26, 28, 609292)),
),
]
......@@ -7,7 +7,9 @@ class Artist(models.Model):
monthly_listeners = models.IntegerField(default=1)
birth_name = models.CharField(max_length=50, unique=True, blank=True,)
bio = models.TextField(blank=True,)
pass
def __str__(self):
return self.artist_name
class Album(models.Model):
......@@ -21,7 +23,9 @@ class Album(models.Model):
release_date = models.DateField(default=datetime.datetime.today())
label = models.CharField(max_length=50, unique=True, blank=True,)
song_count = models.IntegerField(blank=True,)
pass
def __str__(self):
return self.album_name
class Song(models.Model):
......@@ -40,3 +44,6 @@ class Song(models.Model):
song_length = models.TimeField(default=datetime.datetime.now())
music_video = models.BooleanField(default=False)
lyrics = models.TextField(blank=True,)
def __str__(self):
return self.song_title
\ No newline at end of file
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