fix
[audio.git] / src / archive / migrations / 0010_populate_license.py
index dc59bdc..610a085 100644 (file)
@@ -9,8 +9,8 @@ def populate_license(apps, schema_editor):
     Audiobook = apps.get_model('archive.Audiobook')
     licenses = {}
     for a in Audiobook.objects.all():
-        if a.mp3_tags:
-            tags = json.loads(a.mp3_tags)
+        if a.mp3_published_tags:
+            tags = json.loads(a.mp3_published_tags)
             uri = tags.get('license')
             if not uri:
                 continue