Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by Django 3.0.8 on 2022-04-21 08:29
- import crm.models
- import datetime
- from django.conf import settings
- from django.db import migrations, models
- import django.db.models.deletion
- import django.utils.timezone
- import misc.generic_models.meta_mixin
- class Migration(migrations.Migration):
- dependencies = [
- ('crm', '0006_auto_20211014_1654'),
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ('partners', '0107_lvlead_spam_reason'),
- ]
- operations = [
- migrations.AlterModelOptions(
- name='customeraddress',
- options={'ordering': ['country', 'region', 'city', 'project'], 'verbose_name': 'адрес заказчика', 'verbose_name_plural': 'адреса заказчиков'},
- ),
- migrations.AlterModelOptions(
- name='phoneinfo',
- options={'verbose_name': 'Информация о телефоне', 'verbose_name_plural': 'Информация о телефонах'},
- ),
- migrations.AddField(
- model_name='lvproject',
- name='comment',
- field=models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий'),
- ),
- migrations.AlterField(
- model_name='additionalcustomerphone',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='additionalcustomerphone',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_additionalcustomerphone_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='additionalcustomerphone',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_additionalcustomerphone_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='affiliate',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='affiliate',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_affiliate_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='affiliate',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_affiliate_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='affiliatetotladvertiseroffer',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='affiliatetotladvertiseroffer',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_affiliatetotladvertiseroffer_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='affiliatetotladvertiseroffer',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_affiliatetotladvertiseroffer_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='affiliatetotloffer',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='affiliatetotloffer',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_affiliatetotloffer_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='affiliatetotloffer',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_affiliatetotloffer_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='assignedoffer',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='assignedoffer',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_assignedoffer_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='assignedoffer',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_assignedoffer_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='assignedoperator',
- name='operator',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='assigned_operator', to='partners.LVOperator', verbose_name='Оператор'),
- ),
- migrations.AlterField(
- model_name='assignedoperator',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='assignedoperator',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_assignedoperator_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='assignedoperator',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_assignedoperator_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='atscallevent',
- name='lvlead',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='partners.LVLead', verbose_name='Оператор LV'),
- ),
- migrations.AlterField(
- model_name='atscallevent',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='atscallevent',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_atscallevent_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='atscallevent',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_atscallevent_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='bpgood',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='bpgood',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bpgood_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='bpgood',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bpgood_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='bpgoodmove',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='bpgoodmove',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bpgoodmove_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='bpgoodmove',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bpgoodmove_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='bporder',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='bporder',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bporder_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='bporder',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bporder_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='bporderrow',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='bporderrow',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bporderrow_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='bporderrow',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bporderrow_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='bpparcel',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='bpparcel',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bpparcel_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='bpparcel',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bpparcel_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='bpparceloperation',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='bpparceloperation',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bpparceloperation_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='bpparceloperation',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_bpparceloperation_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='cashondeliveryregisterinformation',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='cashondeliveryregisterinformation',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_cashondeliveryregisterinformation_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='cashondeliveryregisterinformation',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_cashondeliveryregisterinformation_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='customer',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='customer',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_customer_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='customer',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_customer_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='customeraddress',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='customeraddress',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_customeraddress_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='customeraddress',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_customeraddress_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='dadataaddress',
- name='composite_external_id',
- field=models.CharField(db_index=True, max_length=100, verbose_name='составной ключ из внешних id заказа и id проекта'),
- ),
- migrations.AlterField(
- model_name='dadataaddress',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='dadataaddress',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_dadataaddress_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='dadataaddress',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_dadataaddress_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='dadatafullname',
- name='composite_external_id',
- field=models.CharField(db_index=True, max_length=100, verbose_name='составной ключ из внешних id заказа и id проекта'),
- ),
- migrations.AlterField(
- model_name='dadatafullname',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='dadatafullname',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_dadatafullname_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='dadatafullname',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_dadatafullname_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='dadataipaddress',
- name='composite_external_id',
- field=models.CharField(db_index=True, max_length=100, verbose_name='составной ключ из внешних id заказа и id проекта'),
- ),
- migrations.AlterField(
- model_name='dadataipaddress',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='dadataipaddress',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_dadataipaddress_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='dadataipaddress',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_dadataipaddress_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='dadataphone',
- name='composite_external_id',
- field=models.CharField(db_index=True, max_length=100, verbose_name='составной ключ из внешних id заказа и id проекта'),
- ),
- migrations.AlterField(
- model_name='dadataphone',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='dadataphone',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_dadataphone_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='dadataphone',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_dadataphone_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='deliveryorder',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='deliveryorder',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_deliveryorder_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='deliveryorder',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_deliveryorder_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='deliveryorderpayment',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='deliveryorderpayment',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_deliveryorderpayment_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='deliveryorderpayment',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_deliveryorderpayment_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='deliveryservicepayment',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='deliveryservicepayment',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_deliveryservicepayment_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='deliveryservicepayment',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_deliveryservicepayment_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='groupoffer',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='groupoffer',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_groupoffer_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='groupoffer',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_groupoffer_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='groupoperator',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='groupoperator',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_groupoperator_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='groupoperator',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_groupoperator_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='lvlead',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='lvlead',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvlead_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='lvlead',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvlead_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='lvleadpaymenthistory',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='lvleadpaymenthistory',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvleadpaymenthistory_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='lvleadpaymenthistory',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvleadpaymenthistory_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='lvleadproduct',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='lvleadproduct',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvleadproduct_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='lvleadproduct',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvleadproduct_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='lvoperator',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='lvoperator',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvoperator_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='lvoperator',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvoperator_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='lvoperator',
- name='username',
- field=models.CharField(max_length=50, verbose_name='Логин сотрудника в LV'),
- ),
- migrations.AlterField(
- model_name='lvproduct',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='lvproduct',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvproduct_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='lvproduct',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvproduct_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='lvproject',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='lvproject',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvproject_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='lvproject',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_lvproject_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='phoneinfo',
- name='phone',
- field=models.CharField(db_index=True, max_length=50, verbose_name='номер телефона заказчика'),
- ),
- migrations.AlterField(
- model_name='phoneinfo',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='phoneinfo',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_phoneinfo_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='phoneinfo',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_phoneinfo_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='postaladdress',
- name='order_number',
- field=models.CharField(db_index=True, default='', max_length=20, verbose_name='номер заказа'),
- ),
- migrations.AlterField(
- model_name='postaladdress',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='postaladdress',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_postaladdress_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='postaladdress',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_postaladdress_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='postalserviceorder',
- name='checked_at',
- field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='дата проверки статусов'),
- ),
- migrations.AlterField(
- model_name='postalserviceorder',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='postalserviceorder',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_postalserviceorder_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='postalserviceorder',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_postalserviceorder_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='postalservicetariff',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='postalservicetariff',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_postalservicetariff_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='postalservicetariff',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_postalservicetariff_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='postaltrackinginformation',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='postaltrackinginformation',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_postaltrackinginformation_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='postaltrackinginformation',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_postaltrackinginformation_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='smsmessage',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='smsmessage',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_smsmessage_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='smsmessage',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_smsmessage_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='subsystem',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='subsystem',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_subsystem_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='subsystem',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_subsystem_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='tladvertiseroffer',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='tladvertiseroffer',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_tladvertiseroffer_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='tladvertiseroffer',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_tladvertiseroffer_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='tllead',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='tllead',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_tllead_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='tllead',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_tllead_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='tloffer',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='tloffer',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_tloffer_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='tloffer',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_tloffer_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='trackinginformationstatus',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='trackinginformationstatus',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trackinginformationstatus_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='trackinginformationstatus',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trackinginformationstatus_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='trackinginformationsubstatus',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='trackinginformationsubstatus',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trackinginformationsubstatus_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='trackinginformationsubstatus',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trackinginformationsubstatus_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='trafficsource',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='trafficsource',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trafficsource_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='trafficsource',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trafficsource_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='trafficsourceclass',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='trafficsourceclass',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trafficsourceclass_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='trafficsourceclass',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trafficsourceclass_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='trafficsourcesubclass',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='trafficsourcesubclass',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trafficsourcesubclass_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='trafficsourcesubclass',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trafficsourcesubclass_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='userbasedonlvoperator',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='userbasedonlvoperator',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_userbasedonlvoperator_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='userbasedonlvoperator',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_userbasedonlvoperator_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterField(
- model_name='whatsappmessage',
- name='project',
- field=models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект'),
- ),
- migrations.AlterField(
- model_name='whatsappmessage',
- name='user_created',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_whatsappmessage_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь'),
- ),
- migrations.AlterField(
- model_name='whatsappmessage',
- name='user_updated',
- field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_whatsappmessage_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения'),
- ),
- migrations.AlterUniqueTogether(
- name='assignedoperator',
- unique_together={('operator', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='cashondeliveryregisterinformation',
- unique_together={('register_type', 'register_date', 'name', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='customer',
- unique_together={('name', 'phone', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='dadataaddress',
- unique_together={('composite_external_id', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='dadatafullname',
- unique_together={('composite_external_id', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='dadataipaddress',
- unique_together={('composite_external_id', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='dadataphone',
- unique_together={('composite_external_id', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='lvoperator',
- unique_together={('username', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='lvproject',
- unique_together={('name', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='phoneinfo',
- unique_together={('phone', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='postaladdress',
- unique_together={('order_number', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='postalservicetariff',
- unique_together={('tariff_code', 'delivery_service', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='subsystem',
- unique_together={('external_id', 'system', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='trackinginformationstatus',
- unique_together={('status_code', 'delivery_service', 'project')},
- ),
- migrations.AlterUniqueTogether(
- name='trackinginformationsubstatus',
- unique_together={('substatus_code', 'delivery_service', 'project')},
- ),
- migrations.CreateModel(
- name='WammChatApiInfo',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
- ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
- ('name', models.CharField(max_length=100, verbose_name='Наименование')),
- ('is_active', models.BooleanField(verbose_name='Активен')),
- ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
- ('api_key', models.CharField(max_length=355, verbose_name='API ключ')),
- ('start_date_of_adding_contacts', models.DateField(blank=True, default=datetime.date(2022, 1, 1), verbose_name='Дата начала добавления контактов')),
- ('project', models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект')),
- ('user_created', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_wammchatapiinfo_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь')),
- ('user_updated', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_wammchatapiinfo_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения')),
- ],
- options={
- 'verbose_name': 'Доступ к API (wamm.chat (интеграция с WhatsAPP))',
- 'verbose_name_plural': 'Доступы к API (wamm.chat (интеграция с WhatsAPP))',
- 'ordering': ['name'],
- 'permissions': (('crm_partners_wamm_chat_api_info_add', 'Создание доступов к wamm.chat WhatsAPP api (crm)'), ('crm_partners_wamm_chat_api_info_view', 'Просмотр доступов к wamm.chat WhatsAPP api (crm)'), ('crm_partners_wamm_chat_api_info_edit', 'Изменение доступов к wamm.chat WhatsAPP api (crm)'), ('crm_partners_wamm_chat_api_info_delete', 'Удаление доступов к wamm.chat WhatsAPP api (crm)'), ('crm_partners_wamm_chat_api_info_change_auth', 'Изменение данных авторизации к wamm.chat WhatsAPP api (crm)')),
- 'unique_together': {('name', 'project')},
- },
- bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
- ),
- migrations.CreateModel(
- name='CustomerLoadedToWammChat',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
- ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
- ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='link_with_wamm_chat', to='partners.Customer', verbose_name='Заказчик')),
- ('project', models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект')),
- ('user_created', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_customerloadedtowammchat_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь')),
- ('user_updated', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_customerloadedtowammchat_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения')),
- ('wamm_chat_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='link_with_customer', to='partners.WammChatApiInfo', verbose_name='Аккаунт wamm.chat')),
- ],
- options={
- 'verbose_name': 'Связь заказчика с аккаунтом wamm.chat',
- 'verbose_name_plural': 'заказчика с аккаунтом wamm.chat',
- 'ordering': ['customer'],
- },
- bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
- ),
- migrations.CreateModel(
- name='TrafficLightApiInfo',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
- ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
- ('name', models.CharField(max_length=100, verbose_name='Наименование')),
- ('is_active', models.BooleanField(verbose_name='Активен')),
- ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
- ('subsystem_external_id', models.CharField(max_length=15, verbose_name='Внешний id подсистемы')),
- ('api_key', models.CharField(max_length=355, verbose_name='API Ключ')),
- ('project', models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект')),
- ('user_created', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trafficlightapiinfo_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь')),
- ('user_updated', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_trafficlightapiinfo_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения')),
- ],
- options={
- 'verbose_name': 'Доступ к API (TrafficLight)',
- 'verbose_name_plural': 'Доступы к API (TrafficLightApi)',
- 'ordering': ['name'],
- 'permissions': (('crm_partners_traffic_light_api_info_add', 'Создание доступов к TrafficLight api (crm)'), ('crm_partners_traffic_light_api_info_view', 'Просмотр доступов к TrafficLight api (crm)'), ('crm_partners_traffic_light_api_info_edit', 'Изменение доступов к TrafficLight api (crm)'), ('crm_partners_traffic_light_api_info_delete', 'Удаление доступов к TrafficLight api (crm)'), ('crm_partners_traffic_light_api_info_change_auth', 'Изменение данных авторизации к TrafficLight api (crm)')),
- 'unique_together': {('name', 'project')},
- },
- bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
- ),
- migrations.CreateModel(
- name='RussianPostApiInfo',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
- ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
- ('name', models.CharField(max_length=100, verbose_name='Наименование')),
- ('is_active', models.BooleanField(verbose_name='Активен')),
- ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
- ('api_token', models.CharField(max_length=355, verbose_name='API Токен')),
- ('api_key', models.CharField(max_length=355, verbose_name='API Ключ')),
- ('project', models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект')),
- ('user_created', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_russianpostapiinfo_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь')),
- ('user_updated', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_russianpostapiinfo_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения')),
- ],
- options={
- 'verbose_name': 'Доступ к API (Почта России)',
- 'verbose_name_plural': 'Доступы к API (Почта России)',
- 'ordering': ['name'],
- 'permissions': (('crm_partners_russian_post_api_info_add', 'Создание доступов к API Почта России (crm)'), ('crm_partners_russian_post_api_info_view', 'Просмотр доступов к API Почта России (crm)'), ('crm_partners_russian_post_api_info_edit', 'Изменение доступов к API Почта России (crm)'), ('crm_partners_russian_post_api_info_delete', 'Удаление доступов к API Почта России (crm)'), ('crm_partners_russian_post_api_info_change_auth', 'Изменение данных авторизации к API Почта России (crm)')),
- 'unique_together': {('name', 'project')},
- },
- bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
- ),
- migrations.CreateModel(
- name='MainSMSApiInfo',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
- ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
- ('name', models.CharField(max_length=100, verbose_name='Наименование')),
- ('is_active', models.BooleanField(verbose_name='Активен')),
- ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
- ('api_project_name', models.CharField(max_length=100, verbose_name='Наименование проекта в партнерской системе')),
- ('api_key', models.CharField(max_length=355, verbose_name='API Ключ')),
- ('project', models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект')),
- ('user_created', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_mainsmsapiinfo_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь')),
- ('user_updated', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_mainsmsapiinfo_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения')),
- ],
- options={
- 'verbose_name': 'Доступ к API (MainSMS)',
- 'verbose_name_plural': 'Доступы к API (MainSMS)',
- 'ordering': ['name'],
- 'permissions': (('crm_partners_main_sms_api_info_add', 'Создание доступов к MainSMS api (crm)'), ('crm_partners_main_sms_api_info_view', 'Просмотр доступов к MainSMS api (crm)'), ('crm_partners_main_sms_api_info_edit', 'Изменение доступов к MainSMS api (crm)'), ('crm_partners_main_sms_api_info_delete', 'Удаление доступов к MainSMS api (crm)'), ('crm_partners_main_sms_api_info_change_auth', 'Изменение данных авторизации к MainSMS api (crm)')),
- 'unique_together': {('api_project_name', 'project')},
- },
- bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
- ),
- migrations.CreateModel(
- name='CDEKApiInfo',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
- ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
- ('name', models.CharField(max_length=100, verbose_name='Наименование')),
- ('is_active', models.BooleanField(verbose_name='Активен')),
- ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
- ('api_account', models.CharField(max_length=255, verbose_name='API Токен')),
- ('api_password', models.CharField(max_length=355, verbose_name='API Ключ')),
- ('project', models.ForeignKey(blank=True, default=crm.models.get_base_record_for_project, on_delete=django.db.models.deletion.PROTECT, to='crm.Project', verbose_name='проект')),
- ('user_created', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_cdekapiinfo_user_created', to=settings.AUTH_USER_MODEL, verbose_name='Создавший пользователь')),
- ('user_updated', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='partners_cdekapiinfo_user_updated', to=settings.AUTH_USER_MODEL, verbose_name='Пользователь, производивший последние изменения')),
- ],
- options={
- 'verbose_name': 'Доступ к API (СДЭК)',
- 'verbose_name_plural': 'Доступы к API (СДЭК)',
- 'ordering': ['name'],
- 'permissions': (('crm_partners_cdek_api_info_add', 'Создание доступов к СДЭК api (crm)'), ('crm_partners_cdek_api_info_view', 'Просмотр доступов к СДЭК api (crm)'), ('crm_partners_cdek_api_info_edit', 'Изменение доступов к СДЭК api (crm)'), ('crm_partners_cdek_api_info_delete', 'Удаление доступов к СДЭК api (crm)'), ('crm_partners_cdek_api_info_change_auth', 'Изменение данных авторизации к СДЭК api (crm)')),
- 'unique_together': {('name', 'project')},
- },
- bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
- ),
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement