forked from 0x2620/pandora
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=''):
|
||||
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."
|
||||
|
|
Loading…
Reference in a new issue