Commit 02728e5c authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix migration

parent 33dae70f
Pipeline #15397 passed with stage
in 5 minutes and 25 seconds
......@@ -9,6 +9,7 @@ def remove_all_images(apps, schema_editor):
def create_all_images(apps, schema_editor):
# TODO: doesn't work, run this manually :/
Robotpkg = apps.get_model('rainboard', 'Robotpkg')
for rpkg in Robotpkg.objects.all():
rpkg.update_images()
......@@ -44,5 +45,5 @@ class Migration(migrations.Migration):
model_name='image',
name='py3',
),
migrations.RunPython(create_all_images),
# migrations.RunPython(create_all_images),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment