fix frame migration

This commit is contained in:
j 2013-03-30 11:18:02 +00:00
parent e987c2f26b
commit b299b4b7e8

View file

@ -15,7 +15,7 @@ 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=''): for f in orm['archive.Frame'].objects.exclude(frame=''):
f.frame.name = f.frame.name.replace('files/', 'media/') f.frame.name = f.frame.name.replace('files/', 'media/')
f.save() f.save()