Commit 27f26e29 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

end 14.04…

parent 51b4c2f2
Pipeline #5326 passed with stage
in 2 minutes and 49 seconds
# Generated by Django 2.2 on 2019-08-21 15:14
from django.db import migrations
def end_trusty(apps, schema_editor):
Target = apps.get_model('rainboard', 'Target')
# Disable Trusty
Target.objects.filter(name='14.04').update(active=False)
# Remove old images
Image = apps.get_model('rainboard', 'Image')
Image.objects.filter(target__active=False).delete()
class Migration(migrations.Migration):
dependencies = [
('rainboard', '0038_end_trusty'),
]
operations = [
migrations.RunPython(end_trusty),
]
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