From cc86435a1f4e97ce92670a839efcae4cd90307c1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 29 Mar 2013 10:13:37 +0000 Subject: [PATCH] path of frames changed too --- pandora/archive/migrations/0005_data_folders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora/archive/migrations/0005_data_folders.py b/pandora/archive/migrations/0005_data_folders.py index 408872737..0eb87267f 100644 --- a/pandora/archive/migrations/0005_data_folders.py +++ b/pandora/archive/migrations/0005_data_folders.py @@ -15,6 +15,9 @@ class Migration(DataMigration): for f in orm['archive.File'].objects.exclude(data=''): f.data.name = f.data.name.replace('files/', 'media/') f.save() + for f in orm['archive.Frame'].objects.exclude(data=''): + f.frame.name = f.frame.name.replace('files/', 'media/') + f.save() def backwards(self, orm): "Write your backwards methods here."