diff --git a/api/funkwhale_api/music/fake_data.py b/api/funkwhale_api/music/fake_data.py index 204060404..09a619886 100644 --- a/api/funkwhale_api/music/fake_data.py +++ b/api/funkwhale_api/music/fake_data.py @@ -7,11 +7,11 @@ from funkwhale_api.music import factories def create_data(count=25): - artists = factories.ArtistFactory.create_batch(size=count) - for artist in artists: - print("Creating data for", artist) + acs = factories.ArtistCreditFactory.create_batch(size=count) + for ac in acs: + print("Creating data for", ac.artist) albums = factories.AlbumFactory.create_batch( - artist=artist, size=random.randint(1, 5) + artist_credit=ac, size=random.randint(1, 5) ) for album in albums: factories.UploadFactory.create_batch( diff --git a/changes/changelog.d/2343.bugfix b/changes/changelog.d/2343.bugfix new file mode 100644 index 000000000..a94b2a98b --- /dev/null +++ b/changes/changelog.d/2343.bugfix @@ -0,0 +1 @@ +fix fakedata generation regression from multiartist (#2343)