Advertisement
Mochinov

Untitled

May 4th, 2022
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.86 KB | None | 0 0
  1. # Generated by Django 3.0.8 on 2022-04-21 08:29
  2.  
  3. import crm.models
  4. import datetime
  5. from django.conf import settings
  6. from django.db import migrations, models
  7. import django.db.models.deletion
  8. import django.utils.timezone
  9. import misc.generic_models.meta_mixin
  10.  
  11.  
  12. class Migration(migrations.Migration):
  13.  
  14. dependencies = [
  15. ('crm', '0006_auto_20211014_1654'),
  16. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  17. ('partners', '0107_lvlead_spam_reason'),
  18. ]
  19.  
  20. operations = [
  21. migrations.AlterModelOptions(
  22. name='customeraddress',
  23. options={'ordering': ['country', 'region', 'city', 'project'], 'verbose_name': 'адрес заказчика', 'verbose_name_plural': 'адреса заказчиков'},
  24. ),
  25. migrations.AlterModelOptions(
  26. name='phoneinfo',
  27. options={'verbose_name': 'Информация о телефоне', 'verbose_name_plural': 'Информация о телефонах'},
  28. ),
  29. migrations.AddField(
  30. model_name='lvproject',
  31. name='comment',
  32. field=models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий'),
  33. ),
  34. migrations.AlterField(
  35. model_name='additionalcustomerphone',
  36. name='project',
  37. 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='проект'),
  38. ),
  39. migrations.AlterField(
  40. model_name='additionalcustomerphone',
  41. name='user_created',
  42. 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='Создавший пользователь'),
  43. ),
  44. migrations.AlterField(
  45. model_name='additionalcustomerphone',
  46. name='user_updated',
  47. 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='Пользователь, производивший последние изменения'),
  48. ),
  49. migrations.AlterField(
  50. model_name='affiliate',
  51. name='project',
  52. 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='проект'),
  53. ),
  54. migrations.AlterField(
  55. model_name='affiliate',
  56. name='user_created',
  57. 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='Создавший пользователь'),
  58. ),
  59. migrations.AlterField(
  60. model_name='affiliate',
  61. name='user_updated',
  62. 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='Пользователь, производивший последние изменения'),
  63. ),
  64. migrations.AlterField(
  65. model_name='affiliatetotladvertiseroffer',
  66. name='project',
  67. 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='проект'),
  68. ),
  69. migrations.AlterField(
  70. model_name='affiliatetotladvertiseroffer',
  71. name='user_created',
  72. 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='Создавший пользователь'),
  73. ),
  74. migrations.AlterField(
  75. model_name='affiliatetotladvertiseroffer',
  76. name='user_updated',
  77. 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='Пользователь, производивший последние изменения'),
  78. ),
  79. migrations.AlterField(
  80. model_name='affiliatetotloffer',
  81. name='project',
  82. 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='проект'),
  83. ),
  84. migrations.AlterField(
  85. model_name='affiliatetotloffer',
  86. name='user_created',
  87. 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='Создавший пользователь'),
  88. ),
  89. migrations.AlterField(
  90. model_name='affiliatetotloffer',
  91. name='user_updated',
  92. 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='Пользователь, производивший последние изменения'),
  93. ),
  94. migrations.AlterField(
  95. model_name='assignedoffer',
  96. name='project',
  97. 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='проект'),
  98. ),
  99. migrations.AlterField(
  100. model_name='assignedoffer',
  101. name='user_created',
  102. 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='Создавший пользователь'),
  103. ),
  104. migrations.AlterField(
  105. model_name='assignedoffer',
  106. name='user_updated',
  107. 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='Пользователь, производивший последние изменения'),
  108. ),
  109. migrations.AlterField(
  110. model_name='assignedoperator',
  111. name='operator',
  112. field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='assigned_operator', to='partners.LVOperator', verbose_name='Оператор'),
  113. ),
  114. migrations.AlterField(
  115. model_name='assignedoperator',
  116. name='project',
  117. 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='проект'),
  118. ),
  119. migrations.AlterField(
  120. model_name='assignedoperator',
  121. name='user_created',
  122. 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='Создавший пользователь'),
  123. ),
  124. migrations.AlterField(
  125. model_name='assignedoperator',
  126. name='user_updated',
  127. 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='Пользователь, производивший последние изменения'),
  128. ),
  129. migrations.AlterField(
  130. model_name='atscallevent',
  131. name='lvlead',
  132. field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='partners.LVLead', verbose_name='Оператор LV'),
  133. ),
  134. migrations.AlterField(
  135. model_name='atscallevent',
  136. name='project',
  137. 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='проект'),
  138. ),
  139. migrations.AlterField(
  140. model_name='atscallevent',
  141. name='user_created',
  142. 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='Создавший пользователь'),
  143. ),
  144. migrations.AlterField(
  145. model_name='atscallevent',
  146. name='user_updated',
  147. 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='Пользователь, производивший последние изменения'),
  148. ),
  149. migrations.AlterField(
  150. model_name='bpgood',
  151. name='project',
  152. 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='проект'),
  153. ),
  154. migrations.AlterField(
  155. model_name='bpgood',
  156. name='user_created',
  157. 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='Создавший пользователь'),
  158. ),
  159. migrations.AlterField(
  160. model_name='bpgood',
  161. name='user_updated',
  162. 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='Пользователь, производивший последние изменения'),
  163. ),
  164. migrations.AlterField(
  165. model_name='bpgoodmove',
  166. name='project',
  167. 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='проект'),
  168. ),
  169. migrations.AlterField(
  170. model_name='bpgoodmove',
  171. name='user_created',
  172. 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='Создавший пользователь'),
  173. ),
  174. migrations.AlterField(
  175. model_name='bpgoodmove',
  176. name='user_updated',
  177. 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='Пользователь, производивший последние изменения'),
  178. ),
  179. migrations.AlterField(
  180. model_name='bporder',
  181. name='project',
  182. 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='проект'),
  183. ),
  184. migrations.AlterField(
  185. model_name='bporder',
  186. name='user_created',
  187. 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='Создавший пользователь'),
  188. ),
  189. migrations.AlterField(
  190. model_name='bporder',
  191. name='user_updated',
  192. 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='Пользователь, производивший последние изменения'),
  193. ),
  194. migrations.AlterField(
  195. model_name='bporderrow',
  196. name='project',
  197. 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='проект'),
  198. ),
  199. migrations.AlterField(
  200. model_name='bporderrow',
  201. name='user_created',
  202. 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='Создавший пользователь'),
  203. ),
  204. migrations.AlterField(
  205. model_name='bporderrow',
  206. name='user_updated',
  207. 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='Пользователь, производивший последние изменения'),
  208. ),
  209. migrations.AlterField(
  210. model_name='bpparcel',
  211. name='project',
  212. 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='проект'),
  213. ),
  214. migrations.AlterField(
  215. model_name='bpparcel',
  216. name='user_created',
  217. 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='Создавший пользователь'),
  218. ),
  219. migrations.AlterField(
  220. model_name='bpparcel',
  221. name='user_updated',
  222. 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='Пользователь, производивший последние изменения'),
  223. ),
  224. migrations.AlterField(
  225. model_name='bpparceloperation',
  226. name='project',
  227. 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='проект'),
  228. ),
  229. migrations.AlterField(
  230. model_name='bpparceloperation',
  231. name='user_created',
  232. 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='Создавший пользователь'),
  233. ),
  234. migrations.AlterField(
  235. model_name='bpparceloperation',
  236. name='user_updated',
  237. 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='Пользователь, производивший последние изменения'),
  238. ),
  239. migrations.AlterField(
  240. model_name='cashondeliveryregisterinformation',
  241. name='project',
  242. 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='проект'),
  243. ),
  244. migrations.AlterField(
  245. model_name='cashondeliveryregisterinformation',
  246. name='user_created',
  247. 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='Создавший пользователь'),
  248. ),
  249. migrations.AlterField(
  250. model_name='cashondeliveryregisterinformation',
  251. name='user_updated',
  252. 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='Пользователь, производивший последние изменения'),
  253. ),
  254. migrations.AlterField(
  255. model_name='customer',
  256. name='project',
  257. 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='проект'),
  258. ),
  259. migrations.AlterField(
  260. model_name='customer',
  261. name='user_created',
  262. 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='Создавший пользователь'),
  263. ),
  264. migrations.AlterField(
  265. model_name='customer',
  266. name='user_updated',
  267. 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='Пользователь, производивший последние изменения'),
  268. ),
  269. migrations.AlterField(
  270. model_name='customeraddress',
  271. name='project',
  272. 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='проект'),
  273. ),
  274. migrations.AlterField(
  275. model_name='customeraddress',
  276. name='user_created',
  277. 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='Создавший пользователь'),
  278. ),
  279. migrations.AlterField(
  280. model_name='customeraddress',
  281. name='user_updated',
  282. 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='Пользователь, производивший последние изменения'),
  283. ),
  284. migrations.AlterField(
  285. model_name='dadataaddress',
  286. name='composite_external_id',
  287. field=models.CharField(db_index=True, max_length=100, verbose_name='составной ключ из внешних id заказа и id проекта'),
  288. ),
  289. migrations.AlterField(
  290. model_name='dadataaddress',
  291. name='project',
  292. 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='проект'),
  293. ),
  294. migrations.AlterField(
  295. model_name='dadataaddress',
  296. name='user_created',
  297. 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='Создавший пользователь'),
  298. ),
  299. migrations.AlterField(
  300. model_name='dadataaddress',
  301. name='user_updated',
  302. 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='Пользователь, производивший последние изменения'),
  303. ),
  304. migrations.AlterField(
  305. model_name='dadatafullname',
  306. name='composite_external_id',
  307. field=models.CharField(db_index=True, max_length=100, verbose_name='составной ключ из внешних id заказа и id проекта'),
  308. ),
  309. migrations.AlterField(
  310. model_name='dadatafullname',
  311. name='project',
  312. 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='проект'),
  313. ),
  314. migrations.AlterField(
  315. model_name='dadatafullname',
  316. name='user_created',
  317. 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='Создавший пользователь'),
  318. ),
  319. migrations.AlterField(
  320. model_name='dadatafullname',
  321. name='user_updated',
  322. 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='Пользователь, производивший последние изменения'),
  323. ),
  324. migrations.AlterField(
  325. model_name='dadataipaddress',
  326. name='composite_external_id',
  327. field=models.CharField(db_index=True, max_length=100, verbose_name='составной ключ из внешних id заказа и id проекта'),
  328. ),
  329. migrations.AlterField(
  330. model_name='dadataipaddress',
  331. name='project',
  332. 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='проект'),
  333. ),
  334. migrations.AlterField(
  335. model_name='dadataipaddress',
  336. name='user_created',
  337. 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='Создавший пользователь'),
  338. ),
  339. migrations.AlterField(
  340. model_name='dadataipaddress',
  341. name='user_updated',
  342. 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='Пользователь, производивший последние изменения'),
  343. ),
  344. migrations.AlterField(
  345. model_name='dadataphone',
  346. name='composite_external_id',
  347. field=models.CharField(db_index=True, max_length=100, verbose_name='составной ключ из внешних id заказа и id проекта'),
  348. ),
  349. migrations.AlterField(
  350. model_name='dadataphone',
  351. name='project',
  352. 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='проект'),
  353. ),
  354. migrations.AlterField(
  355. model_name='dadataphone',
  356. name='user_created',
  357. 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='Создавший пользователь'),
  358. ),
  359. migrations.AlterField(
  360. model_name='dadataphone',
  361. name='user_updated',
  362. 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='Пользователь, производивший последние изменения'),
  363. ),
  364. migrations.AlterField(
  365. model_name='deliveryorder',
  366. name='project',
  367. 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='проект'),
  368. ),
  369. migrations.AlterField(
  370. model_name='deliveryorder',
  371. name='user_created',
  372. 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='Создавший пользователь'),
  373. ),
  374. migrations.AlterField(
  375. model_name='deliveryorder',
  376. name='user_updated',
  377. 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='Пользователь, производивший последние изменения'),
  378. ),
  379. migrations.AlterField(
  380. model_name='deliveryorderpayment',
  381. name='project',
  382. 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='проект'),
  383. ),
  384. migrations.AlterField(
  385. model_name='deliveryorderpayment',
  386. name='user_created',
  387. 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='Создавший пользователь'),
  388. ),
  389. migrations.AlterField(
  390. model_name='deliveryorderpayment',
  391. name='user_updated',
  392. 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='Пользователь, производивший последние изменения'),
  393. ),
  394. migrations.AlterField(
  395. model_name='deliveryservicepayment',
  396. name='project',
  397. 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='проект'),
  398. ),
  399. migrations.AlterField(
  400. model_name='deliveryservicepayment',
  401. name='user_created',
  402. 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='Создавший пользователь'),
  403. ),
  404. migrations.AlterField(
  405. model_name='deliveryservicepayment',
  406. name='user_updated',
  407. 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='Пользователь, производивший последние изменения'),
  408. ),
  409. migrations.AlterField(
  410. model_name='groupoffer',
  411. name='project',
  412. 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='проект'),
  413. ),
  414. migrations.AlterField(
  415. model_name='groupoffer',
  416. name='user_created',
  417. 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='Создавший пользователь'),
  418. ),
  419. migrations.AlterField(
  420. model_name='groupoffer',
  421. name='user_updated',
  422. 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='Пользователь, производивший последние изменения'),
  423. ),
  424. migrations.AlterField(
  425. model_name='groupoperator',
  426. name='project',
  427. 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='проект'),
  428. ),
  429. migrations.AlterField(
  430. model_name='groupoperator',
  431. name='user_created',
  432. 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='Создавший пользователь'),
  433. ),
  434. migrations.AlterField(
  435. model_name='groupoperator',
  436. name='user_updated',
  437. 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='Пользователь, производивший последние изменения'),
  438. ),
  439. migrations.AlterField(
  440. model_name='lvlead',
  441. name='project',
  442. 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='проект'),
  443. ),
  444. migrations.AlterField(
  445. model_name='lvlead',
  446. name='user_created',
  447. 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='Создавший пользователь'),
  448. ),
  449. migrations.AlterField(
  450. model_name='lvlead',
  451. name='user_updated',
  452. 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='Пользователь, производивший последние изменения'),
  453. ),
  454. migrations.AlterField(
  455. model_name='lvleadpaymenthistory',
  456. name='project',
  457. 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='проект'),
  458. ),
  459. migrations.AlterField(
  460. model_name='lvleadpaymenthistory',
  461. name='user_created',
  462. 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='Создавший пользователь'),
  463. ),
  464. migrations.AlterField(
  465. model_name='lvleadpaymenthistory',
  466. name='user_updated',
  467. 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='Пользователь, производивший последние изменения'),
  468. ),
  469. migrations.AlterField(
  470. model_name='lvleadproduct',
  471. name='project',
  472. 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='проект'),
  473. ),
  474. migrations.AlterField(
  475. model_name='lvleadproduct',
  476. name='user_created',
  477. 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='Создавший пользователь'),
  478. ),
  479. migrations.AlterField(
  480. model_name='lvleadproduct',
  481. name='user_updated',
  482. 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='Пользователь, производивший последние изменения'),
  483. ),
  484. migrations.AlterField(
  485. model_name='lvoperator',
  486. name='project',
  487. 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='проект'),
  488. ),
  489. migrations.AlterField(
  490. model_name='lvoperator',
  491. name='user_created',
  492. 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='Создавший пользователь'),
  493. ),
  494. migrations.AlterField(
  495. model_name='lvoperator',
  496. name='user_updated',
  497. 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='Пользователь, производивший последние изменения'),
  498. ),
  499. migrations.AlterField(
  500. model_name='lvoperator',
  501. name='username',
  502. field=models.CharField(max_length=50, verbose_name='Логин сотрудника в LV'),
  503. ),
  504. migrations.AlterField(
  505. model_name='lvproduct',
  506. name='project',
  507. 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='проект'),
  508. ),
  509. migrations.AlterField(
  510. model_name='lvproduct',
  511. name='user_created',
  512. 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='Создавший пользователь'),
  513. ),
  514. migrations.AlterField(
  515. model_name='lvproduct',
  516. name='user_updated',
  517. 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='Пользователь, производивший последние изменения'),
  518. ),
  519. migrations.AlterField(
  520. model_name='lvproject',
  521. name='project',
  522. 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='проект'),
  523. ),
  524. migrations.AlterField(
  525. model_name='lvproject',
  526. name='user_created',
  527. 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='Создавший пользователь'),
  528. ),
  529. migrations.AlterField(
  530. model_name='lvproject',
  531. name='user_updated',
  532. 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='Пользователь, производивший последние изменения'),
  533. ),
  534. migrations.AlterField(
  535. model_name='phoneinfo',
  536. name='phone',
  537. field=models.CharField(db_index=True, max_length=50, verbose_name='номер телефона заказчика'),
  538. ),
  539. migrations.AlterField(
  540. model_name='phoneinfo',
  541. name='project',
  542. 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='проект'),
  543. ),
  544. migrations.AlterField(
  545. model_name='phoneinfo',
  546. name='user_created',
  547. 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='Создавший пользователь'),
  548. ),
  549. migrations.AlterField(
  550. model_name='phoneinfo',
  551. name='user_updated',
  552. 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='Пользователь, производивший последние изменения'),
  553. ),
  554. migrations.AlterField(
  555. model_name='postaladdress',
  556. name='order_number',
  557. field=models.CharField(db_index=True, default='', max_length=20, verbose_name='номер заказа'),
  558. ),
  559. migrations.AlterField(
  560. model_name='postaladdress',
  561. name='project',
  562. 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='проект'),
  563. ),
  564. migrations.AlterField(
  565. model_name='postaladdress',
  566. name='user_created',
  567. 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='Создавший пользователь'),
  568. ),
  569. migrations.AlterField(
  570. model_name='postaladdress',
  571. name='user_updated',
  572. 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='Пользователь, производивший последние изменения'),
  573. ),
  574. migrations.AlterField(
  575. model_name='postalserviceorder',
  576. name='checked_at',
  577. field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='дата проверки статусов'),
  578. ),
  579. migrations.AlterField(
  580. model_name='postalserviceorder',
  581. name='project',
  582. 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='проект'),
  583. ),
  584. migrations.AlterField(
  585. model_name='postalserviceorder',
  586. name='user_created',
  587. 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='Создавший пользователь'),
  588. ),
  589. migrations.AlterField(
  590. model_name='postalserviceorder',
  591. name='user_updated',
  592. 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='Пользователь, производивший последние изменения'),
  593. ),
  594. migrations.AlterField(
  595. model_name='postalservicetariff',
  596. name='project',
  597. 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='проект'),
  598. ),
  599. migrations.AlterField(
  600. model_name='postalservicetariff',
  601. name='user_created',
  602. 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='Создавший пользователь'),
  603. ),
  604. migrations.AlterField(
  605. model_name='postalservicetariff',
  606. name='user_updated',
  607. 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='Пользователь, производивший последние изменения'),
  608. ),
  609. migrations.AlterField(
  610. model_name='postaltrackinginformation',
  611. name='project',
  612. 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='проект'),
  613. ),
  614. migrations.AlterField(
  615. model_name='postaltrackinginformation',
  616. name='user_created',
  617. 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='Создавший пользователь'),
  618. ),
  619. migrations.AlterField(
  620. model_name='postaltrackinginformation',
  621. name='user_updated',
  622. 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='Пользователь, производивший последние изменения'),
  623. ),
  624. migrations.AlterField(
  625. model_name='smsmessage',
  626. name='project',
  627. 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='проект'),
  628. ),
  629. migrations.AlterField(
  630. model_name='smsmessage',
  631. name='user_created',
  632. 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='Создавший пользователь'),
  633. ),
  634. migrations.AlterField(
  635. model_name='smsmessage',
  636. name='user_updated',
  637. 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='Пользователь, производивший последние изменения'),
  638. ),
  639. migrations.AlterField(
  640. model_name='subsystem',
  641. name='project',
  642. 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='проект'),
  643. ),
  644. migrations.AlterField(
  645. model_name='subsystem',
  646. name='user_created',
  647. 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='Создавший пользователь'),
  648. ),
  649. migrations.AlterField(
  650. model_name='subsystem',
  651. name='user_updated',
  652. 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='Пользователь, производивший последние изменения'),
  653. ),
  654. migrations.AlterField(
  655. model_name='tladvertiseroffer',
  656. name='project',
  657. 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='проект'),
  658. ),
  659. migrations.AlterField(
  660. model_name='tladvertiseroffer',
  661. name='user_created',
  662. 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='Создавший пользователь'),
  663. ),
  664. migrations.AlterField(
  665. model_name='tladvertiseroffer',
  666. name='user_updated',
  667. 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='Пользователь, производивший последние изменения'),
  668. ),
  669. migrations.AlterField(
  670. model_name='tllead',
  671. name='project',
  672. 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='проект'),
  673. ),
  674. migrations.AlterField(
  675. model_name='tllead',
  676. name='user_created',
  677. 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='Создавший пользователь'),
  678. ),
  679. migrations.AlterField(
  680. model_name='tllead',
  681. name='user_updated',
  682. 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='Пользователь, производивший последние изменения'),
  683. ),
  684. migrations.AlterField(
  685. model_name='tloffer',
  686. name='project',
  687. 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='проект'),
  688. ),
  689. migrations.AlterField(
  690. model_name='tloffer',
  691. name='user_created',
  692. 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='Создавший пользователь'),
  693. ),
  694. migrations.AlterField(
  695. model_name='tloffer',
  696. name='user_updated',
  697. 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='Пользователь, производивший последние изменения'),
  698. ),
  699. migrations.AlterField(
  700. model_name='trackinginformationstatus',
  701. name='project',
  702. 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='проект'),
  703. ),
  704. migrations.AlterField(
  705. model_name='trackinginformationstatus',
  706. name='user_created',
  707. 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='Создавший пользователь'),
  708. ),
  709. migrations.AlterField(
  710. model_name='trackinginformationstatus',
  711. name='user_updated',
  712. 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='Пользователь, производивший последние изменения'),
  713. ),
  714. migrations.AlterField(
  715. model_name='trackinginformationsubstatus',
  716. name='project',
  717. 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='проект'),
  718. ),
  719. migrations.AlterField(
  720. model_name='trackinginformationsubstatus',
  721. name='user_created',
  722. 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='Создавший пользователь'),
  723. ),
  724. migrations.AlterField(
  725. model_name='trackinginformationsubstatus',
  726. name='user_updated',
  727. 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='Пользователь, производивший последние изменения'),
  728. ),
  729. migrations.AlterField(
  730. model_name='trafficsource',
  731. name='project',
  732. 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='проект'),
  733. ),
  734. migrations.AlterField(
  735. model_name='trafficsource',
  736. name='user_created',
  737. 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='Создавший пользователь'),
  738. ),
  739. migrations.AlterField(
  740. model_name='trafficsource',
  741. name='user_updated',
  742. 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='Пользователь, производивший последние изменения'),
  743. ),
  744. migrations.AlterField(
  745. model_name='trafficsourceclass',
  746. name='project',
  747. 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='проект'),
  748. ),
  749. migrations.AlterField(
  750. model_name='trafficsourceclass',
  751. name='user_created',
  752. 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='Создавший пользователь'),
  753. ),
  754. migrations.AlterField(
  755. model_name='trafficsourceclass',
  756. name='user_updated',
  757. 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='Пользователь, производивший последние изменения'),
  758. ),
  759. migrations.AlterField(
  760. model_name='trafficsourcesubclass',
  761. name='project',
  762. 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='проект'),
  763. ),
  764. migrations.AlterField(
  765. model_name='trafficsourcesubclass',
  766. name='user_created',
  767. 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='Создавший пользователь'),
  768. ),
  769. migrations.AlterField(
  770. model_name='trafficsourcesubclass',
  771. name='user_updated',
  772. 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='Пользователь, производивший последние изменения'),
  773. ),
  774. migrations.AlterField(
  775. model_name='userbasedonlvoperator',
  776. name='project',
  777. 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='проект'),
  778. ),
  779. migrations.AlterField(
  780. model_name='userbasedonlvoperator',
  781. name='user_created',
  782. 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='Создавший пользователь'),
  783. ),
  784. migrations.AlterField(
  785. model_name='userbasedonlvoperator',
  786. name='user_updated',
  787. 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='Пользователь, производивший последние изменения'),
  788. ),
  789. migrations.AlterField(
  790. model_name='whatsappmessage',
  791. name='project',
  792. 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='проект'),
  793. ),
  794. migrations.AlterField(
  795. model_name='whatsappmessage',
  796. name='user_created',
  797. 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='Создавший пользователь'),
  798. ),
  799. migrations.AlterField(
  800. model_name='whatsappmessage',
  801. name='user_updated',
  802. 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='Пользователь, производивший последние изменения'),
  803. ),
  804. migrations.AlterUniqueTogether(
  805. name='assignedoperator',
  806. unique_together={('operator', 'project')},
  807. ),
  808. migrations.AlterUniqueTogether(
  809. name='cashondeliveryregisterinformation',
  810. unique_together={('register_type', 'register_date', 'name', 'project')},
  811. ),
  812. migrations.AlterUniqueTogether(
  813. name='customer',
  814. unique_together={('name', 'phone', 'project')},
  815. ),
  816. migrations.AlterUniqueTogether(
  817. name='dadataaddress',
  818. unique_together={('composite_external_id', 'project')},
  819. ),
  820. migrations.AlterUniqueTogether(
  821. name='dadatafullname',
  822. unique_together={('composite_external_id', 'project')},
  823. ),
  824. migrations.AlterUniqueTogether(
  825. name='dadataipaddress',
  826. unique_together={('composite_external_id', 'project')},
  827. ),
  828. migrations.AlterUniqueTogether(
  829. name='dadataphone',
  830. unique_together={('composite_external_id', 'project')},
  831. ),
  832. migrations.AlterUniqueTogether(
  833. name='lvoperator',
  834. unique_together={('username', 'project')},
  835. ),
  836. migrations.AlterUniqueTogether(
  837. name='lvproject',
  838. unique_together={('name', 'project')},
  839. ),
  840. migrations.AlterUniqueTogether(
  841. name='phoneinfo',
  842. unique_together={('phone', 'project')},
  843. ),
  844. migrations.AlterUniqueTogether(
  845. name='postaladdress',
  846. unique_together={('order_number', 'project')},
  847. ),
  848. migrations.AlterUniqueTogether(
  849. name='postalservicetariff',
  850. unique_together={('tariff_code', 'delivery_service', 'project')},
  851. ),
  852. migrations.AlterUniqueTogether(
  853. name='subsystem',
  854. unique_together={('external_id', 'system', 'project')},
  855. ),
  856. migrations.AlterUniqueTogether(
  857. name='trackinginformationstatus',
  858. unique_together={('status_code', 'delivery_service', 'project')},
  859. ),
  860. migrations.AlterUniqueTogether(
  861. name='trackinginformationsubstatus',
  862. unique_together={('substatus_code', 'delivery_service', 'project')},
  863. ),
  864. migrations.CreateModel(
  865. name='WammChatApiInfo',
  866. fields=[
  867. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  868. ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
  869. ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
  870. ('name', models.CharField(max_length=100, verbose_name='Наименование')),
  871. ('is_active', models.BooleanField(verbose_name='Активен')),
  872. ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
  873. ('api_key', models.CharField(max_length=355, verbose_name='API ключ')),
  874. ('start_date_of_adding_contacts', models.DateField(blank=True, default=datetime.date(2022, 1, 1), verbose_name='Дата начала добавления контактов')),
  875. ('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='проект')),
  876. ('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='Создавший пользователь')),
  877. ('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='Пользователь, производивший последние изменения')),
  878. ],
  879. options={
  880. 'verbose_name': 'Доступ к API (wamm.chat (интеграция с WhatsAPP))',
  881. 'verbose_name_plural': 'Доступы к API (wamm.chat (интеграция с WhatsAPP))',
  882. 'ordering': ['name'],
  883. '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)')),
  884. 'unique_together': {('name', 'project')},
  885. },
  886. bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
  887. ),
  888. migrations.CreateModel(
  889. name='CustomerLoadedToWammChat',
  890. fields=[
  891. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  892. ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
  893. ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
  894. ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='link_with_wamm_chat', to='partners.Customer', verbose_name='Заказчик')),
  895. ('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='проект')),
  896. ('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='Создавший пользователь')),
  897. ('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='Пользователь, производивший последние изменения')),
  898. ('wamm_chat_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='link_with_customer', to='partners.WammChatApiInfo', verbose_name='Аккаунт wamm.chat')),
  899. ],
  900. options={
  901. 'verbose_name': 'Связь заказчика с аккаунтом wamm.chat',
  902. 'verbose_name_plural': 'заказчика с аккаунтом wamm.chat',
  903. 'ordering': ['customer'],
  904. },
  905. bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
  906. ),
  907. migrations.CreateModel(
  908. name='TrafficLightApiInfo',
  909. fields=[
  910. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  911. ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
  912. ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
  913. ('name', models.CharField(max_length=100, verbose_name='Наименование')),
  914. ('is_active', models.BooleanField(verbose_name='Активен')),
  915. ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
  916. ('subsystem_external_id', models.CharField(max_length=15, verbose_name='Внешний id подсистемы')),
  917. ('api_key', models.CharField(max_length=355, verbose_name='API Ключ')),
  918. ('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='проект')),
  919. ('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='Создавший пользователь')),
  920. ('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='Пользователь, производивший последние изменения')),
  921. ],
  922. options={
  923. 'verbose_name': 'Доступ к API (TrafficLight)',
  924. 'verbose_name_plural': 'Доступы к API (TrafficLightApi)',
  925. 'ordering': ['name'],
  926. '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)')),
  927. 'unique_together': {('name', 'project')},
  928. },
  929. bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
  930. ),
  931. migrations.CreateModel(
  932. name='RussianPostApiInfo',
  933. fields=[
  934. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  935. ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
  936. ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
  937. ('name', models.CharField(max_length=100, verbose_name='Наименование')),
  938. ('is_active', models.BooleanField(verbose_name='Активен')),
  939. ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
  940. ('api_token', models.CharField(max_length=355, verbose_name='API Токен')),
  941. ('api_key', models.CharField(max_length=355, verbose_name='API Ключ')),
  942. ('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='проект')),
  943. ('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='Создавший пользователь')),
  944. ('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='Пользователь, производивший последние изменения')),
  945. ],
  946. options={
  947. 'verbose_name': 'Доступ к API (Почта России)',
  948. 'verbose_name_plural': 'Доступы к API (Почта России)',
  949. 'ordering': ['name'],
  950. '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)')),
  951. 'unique_together': {('name', 'project')},
  952. },
  953. bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
  954. ),
  955. migrations.CreateModel(
  956. name='MainSMSApiInfo',
  957. fields=[
  958. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  959. ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
  960. ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
  961. ('name', models.CharField(max_length=100, verbose_name='Наименование')),
  962. ('is_active', models.BooleanField(verbose_name='Активен')),
  963. ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
  964. ('api_project_name', models.CharField(max_length=100, verbose_name='Наименование проекта в партнерской системе')),
  965. ('api_key', models.CharField(max_length=355, verbose_name='API Ключ')),
  966. ('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='проект')),
  967. ('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='Создавший пользователь')),
  968. ('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='Пользователь, производивший последние изменения')),
  969. ],
  970. options={
  971. 'verbose_name': 'Доступ к API (MainSMS)',
  972. 'verbose_name_plural': 'Доступы к API (MainSMS)',
  973. 'ordering': ['name'],
  974. '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)')),
  975. 'unique_together': {('api_project_name', 'project')},
  976. },
  977. bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
  978. ),
  979. migrations.CreateModel(
  980. name='CDEKApiInfo',
  981. fields=[
  982. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  983. ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Дата создания')),
  984. ('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='Дата последнего изменения')),
  985. ('name', models.CharField(max_length=100, verbose_name='Наименование')),
  986. ('is_active', models.BooleanField(verbose_name='Активен')),
  987. ('comment', models.CharField(blank=True, default='', max_length=355, verbose_name='Комментарий')),
  988. ('api_account', models.CharField(max_length=255, verbose_name='API Токен')),
  989. ('api_password', models.CharField(max_length=355, verbose_name='API Ключ')),
  990. ('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='проект')),
  991. ('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='Создавший пользователь')),
  992. ('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='Пользователь, производивший последние изменения')),
  993. ],
  994. options={
  995. 'verbose_name': 'Доступ к API (СДЭК)',
  996. 'verbose_name_plural': 'Доступы к API (СДЭК)',
  997. 'ordering': ['name'],
  998. '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)')),
  999. 'unique_together': {('name', 'project')},
  1000. },
  1001. bases=(models.Model, misc.generic_models.meta_mixin.MetaMixin),
  1002. ),
  1003. ]
  1004.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement