from django.db import migrations


def forwards(apps, schema_editor):
    SeekerProfile = apps.get_model('seekers', 'SeekerProfile')
    SeekerProfile.objects.filter(is_public=True).update(visibility='public')
    SeekerProfile.objects.filter(is_public=False).update(visibility='private')


class Migration(migrations.Migration):
    dependencies = [('seekers', '0007_professional_profile')]
    operations = [migrations.RunPython(forwards, migrations.RunPython.noop)]
