fix frame migration
This commit is contained in:
parent
e987c2f26b
commit
b299b4b7e8
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue