path of frames changed too

This commit is contained in:
j 2013-03-29 10:13:37 +00:00
parent b047c0e9c9
commit cc86435a1f

View file

@ -15,6 +15,9 @@ class Migration(DataMigration):
for f in orm['archive.File'].objects.exclude(data=''): for f in orm['archive.File'].objects.exclude(data=''):
f.data.name = f.data.name.replace('files/', 'media/') f.data.name = f.data.name.replace('files/', 'media/')
f.save() 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): def backwards(self, orm):
"Write your backwards methods here." "Write your backwards methods here."