diff --git a/savepointradio/radio/migrations/0001_initial.py b/savepointradio/radio/migrations/0001_initial.py index 73fed91..32a1b5b 100644 --- a/savepointradio/radio/migrations/0001_initial.py +++ b/savepointradio/radio/migrations/0001_initial.py @@ -83,7 +83,7 @@ class Migration(migrations.Migration): ('path', models.TextField(verbose_name='absolute path to song file')), ('sorted_title', models.CharField(db_index=True, editable=False, max_length=255, verbose_name='naturalized title')), ('album', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='radio.Album')), - ('artists', models.ManyToManyField(to='radio.Artist')), + ('artists', models.ManyToManyField(blank=True, to='radio.Artist')), ('game', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='radio.Game')), ], options={ diff --git a/savepointradio/radio/models.py b/savepointradio/radio/models.py index 46fbb34..38e5488 100644 --- a/savepointradio/radio/models.py +++ b/savepointradio/radio/models.py @@ -102,7 +102,7 @@ class Song(Disableable, Publishable, Timestampable, models.Model): on_delete=models.SET_NULL, null=True, blank=True) - artists = models.ManyToManyField(Artist) + artists = models.ManyToManyField(Artist, blank=True) game = models.ForeignKey(Game, on_delete=models.SET_NULL, null=True,