X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/db4b95766ce00690d38bff256d77fed006abc54d..2d950c51810e29fd54bf706fa01a74be065f881c:/src/youtube/migrations/0012_move_thumbnail_definitions.py?ds=sidebyside diff --git a/src/youtube/migrations/0012_move_thumbnail_definitions.py b/src/youtube/migrations/0012_move_thumbnail_definitions.py index a54cf12..15909f0 100644 --- a/src/youtube/migrations/0012_move_thumbnail_definitions.py +++ b/src/youtube/migrations/0012_move_thumbnail_definitions.py @@ -18,7 +18,7 @@ def move_definitions(apps, schema_editor): ThumbnailTemplate = apps.get_model('youtube', 'ThumbnailTemplate') order = 1 for youtube in YouTube.objects.all(): - src_def = yaml.load(youtube.thumbnail_definition) + src_def = yaml.safe_load(youtube.thumbnail_definition) version_lists = [ box['versions'] for box in src_def['boxes']