syntax error, oops
This commit is contained in:
parent
2ad9f4a099
commit
5103744d41
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ from django.db import migrations
|
||||||
def move_sources(apps, schema_editor):
|
def move_sources(apps, schema_editor):
|
||||||
Source = apps.get_model('mapdata', 'Source')
|
Source = apps.get_model('mapdata', 'Source')
|
||||||
for source in Source.objects.all():
|
for source in Source.objects.all():
|
||||||
with open(settings.SOURCES_ROOT / source.name), 'wb') as f:
|
with open(settings.SOURCES_ROOT / source.name, 'wb') as f:
|
||||||
f.write(source.image)
|
f.write(source.image)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue