From bbe744da17ba7f02b0f8522ed98633377279f567 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Sun, 24 May 2020 01:53:05 +0200 Subject: [PATCH] fix --- src/archive/migrations/0010_populate_license.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/archive/migrations/0010_populate_license.py b/src/archive/migrations/0010_populate_license.py index 9533003..610a085 100644 --- a/src/archive/migrations/0010_populate_license.py +++ b/src/archive/migrations/0010_populate_license.py @@ -9,7 +9,7 @@ def populate_license(apps, schema_editor): Audiobook = apps.get_model('archive.Audiobook') licenses = {} for a in Audiobook.objects.all(): - if a.mp3_tags: + if a.mp3_published_tags: tags = json.loads(a.mp3_published_tags) uri = tags.get('license') if not uri: -- 2.20.1