修复冻结迁移:WithdrawConfig 字段改到 peizhi 应用独立迁移。
避免 yonghu.0023 跨应用修改 withdrawconfig 导致 KeyError。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user