# Generated by Django 4.2.29 on 2026-03-17 16:23

from django.db import migrations


def set_existing_users_false(apps, schema_editor):
    """现有用户不需要强制改密，只有新创建的用户才需要。"""
    User = apps.get_model('accounts', 'User')
    User.objects.all().update(must_change_password=False)


class Migration(migrations.Migration):

    dependencies = [
        ('accounts', '0006_user_must_change_password_alter_adminauditlog_action_and_more'),
    ]

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