From: Radek Czajka Date: Sat, 23 May 2020 23:53:05 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/bbe744da17ba7f02b0f8522ed98633377279f567?ds=inline;hp=23994f414001d00c7e1dcad37a33cd7379d510e1 fix --- 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: