path of frames changed too
This commit is contained in:
parent
b047c0e9c9
commit
cc86435a1f
1 changed files with 3 additions and 0 deletions
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue