sms
This commit is contained in:
1 parent
250cdbab7f
commit
5c6069c3ef
87 files changed
+29209
-3697
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 3.2.25 on 2026-10-10 08:43
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
def scrub_legacy_phones(apps, schema_editor):
|
||||
"""پاکسازی یکبارهٔ فیلدهای تلفن قدیمی (idempotent).
|
||||
|
||||
همان قاعدهٔ ``admin_panel.sms.phone_cleanup``؛ اینجا فقط مدل از رجیستری
|
||||
تاریخی گرفته میشود. اجرای دوباره بیاثر است.
|
||||
"""
|
||||
from admin_panel.sms.phone_cleanup import clean_all
|
||||
|
||||
clean_all(apps=apps)
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('admin_panel', '0066_smsdedup'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='notes',
|
||||
field=models.TextField(blank=True, default='', help_text='یادداشت آزاد دربارهٔ مشتری؛ متنهای حذفشدهٔ فیلدهای تلفن هم اینجا ثبت میشوند.', verbose_name='توضیحات'),
|
||||
),
|
||||
migrations.RunPython(scrub_legacy_phones, migrations.RunPython.noop),
|
||||
]
|
||||
Reference in new issue
Block a user