Use TextField for artist links

main
Luca 2 years ago
parent 2a7c3f33a4
commit 629c71c48a

@ -0,0 +1,23 @@
# Generated by Django 4.1.4 on 2022-12-19 00:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("core", "0003_session_offset"),
]
operations = [
migrations.AlterField(
model_name="artist",
name="link_1",
field=models.TextField(blank=True),
),
migrations.AlterField(
model_name="artist",
name="link_2",
field=models.TextField(blank=True),
),
]

@ -10,8 +10,8 @@ class Playlist(models.Model):
class Artist(models.Model): class Artist(models.Model):
name = models.TextField() name = models.TextField()
genre = models.TextField() genre = models.TextField()
link_1 = models.URLField(blank=True) link_1 = models.TextField(blank=True)
link_2 = models.URLField(blank=True) link_2 = models.TextField(blank=True)
origin = models.TextField(blank=True) origin = models.TextField(blank=True)
comment = models.TextField(blank=True) comment = models.TextField(blank=True)
playlist = models.ForeignKey(Playlist, on_delete=models.CASCADE) playlist = models.ForeignKey(Playlist, on_delete=models.CASCADE)

Loading…
Cancel
Save