Commit 2d3a8ded authored by Joei Yucoco's avatar Joei Yucoco

Altered release_date field so that it uses a DateField

parent 3a3b8a88
# Generated by Django 3.2 on 2023-02-20 09:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('About', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='album',
name='label',
field=models.CharField(default='cool label', max_length=100),
preserve_default=False,
),
migrations.AddField(
model_name='album',
name='song_count',
field=models.IntegerField(default=69),
preserve_default=False,
),
migrations.AddField(
model_name='artist',
name='bio',
field=models.CharField(default='Hello World!', max_length=700),
preserve_default=False,
),
migrations.AddField(
model_name='artist',
name='birth_name',
field=models.CharField(default='Shrek', max_length=100),
preserve_default=False,
),
migrations.AddField(
model_name='song',
name='lyrics',
field=models.CharField(default='Somebody once told me', max_length=5000),
preserve_default=False,
),
migrations.AddField(
model_name='song',
name='music_video',
field=models.BooleanField(default=True),
preserve_default=False,
),
]
# Generated by Django 3.2 on 2023-02-20 09:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('About', '0002_auto_20230220_0940'),
]
operations = [
migrations.AlterField(
model_name='album',
name='release_date',
field=models.DateField(),
),
]
...@@ -10,7 +10,7 @@ class Album (models.Model): ...@@ -10,7 +10,7 @@ class Album (models.Model):
album_name = models.CharField(max_length=100) album_name = models.CharField(max_length=100)
artist = models.ForeignKey(Artist, on_delete=models.CASCADE) artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
description = models.CharField(max_length=500) description = models.CharField(max_length=500)
release_date = models.CharField(max_length=10) #formatted like MM/DD/YYYY release_date = models.DateField()
label = models.CharField(max_length=100) label = models.CharField(max_length=100)
song_count = models.IntegerField() song_count = models.IntegerField()
......
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