syntax error, oops

This commit is contained in:
Laura Klünder 2023-11-11 12:07:42 +01:00
parent 2ad9f4a099
commit 5103744d41

View file

@ -11,7 +11,7 @@ from django.db import migrations
def move_sources(apps, schema_editor):
Source = apps.get_model('mapdata', 'Source')
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)