# Generated by Django 1.11.7 on 2017-12-23 23:58

from django.db import migrations


def move_vetted(apps, schema_editor):
    Observation = apps.get_model('base', 'Observation')
    for obs in Observation.objects.all():
        if obs.vetted_status == 'verified':
            obs.vetted_status='good'
        if obs.vetted_status == 'no_data':
            obs.vetted_status='bad'
        obs.save()


class Migration(migrations.Migration):

    dependencies = [
        ('base', '0030_auto_20171224_1701'),
    ]

    operations = [
        migrations.RunPython(move_vetted),
    ]
