修复冻结迁移:WithdrawConfig 字段改到 peizhi 应用独立迁移。

避免 yonghu.0023 跨应用修改 withdrawconfig 导致 KeyError。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-10 04:10:18 +08:00
parent 4e4aa0fa7e
commit c0aefd3f68
2 changed files with 17 additions and 6 deletions

View File

@@ -21,16 +21,11 @@ def seed_public_freeze(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
('peizhi', '0020_xcx_sys_peizhi_shangjia_paifa_limit'),
('peizhi', '0021_withdrawconfig_dongjie_quanju_enabled'),
('yonghu', '0022_backfill_tixianjilu_shenqing_jine'),
]
operations = [
migrations.AddField(
model_name='withdrawconfig',
name='dongjie_quanju_enabled',
field=models.BooleanField(default=False, verbose_name='全员冻结总开关'),
),
migrations.AddField(
model_name='userdashou',
name='dongjie_chi',