import uuid

# Generated by Django 3.2.7 on 2022-05-13 19:09
from django.db import migrations


def gen_uuid(apps, schema_editor):
    Notification = apps.get_model("notifications", "Notification")
    for notification in Notification.objects.all():
        notification.secret_uuid = uuid.uuid4()
        notification.save(update_fields=["secret_uuid"])


class Migration(migrations.Migration):

    dependencies = [
        ("notifications", "0004_auto_20220513_2108"),
    ]

    operations = [
        migrations.RunPython(gen_uuid, migrations.RunPython.noop),
    ]
