parent
1535720a23
commit
0507346fcc
3 changed files with 92 additions and 0 deletions
@ -0,0 +1,55 @@ |
||||
# -*- coding: utf-8 -*- |
||||
from __future__ import unicode_literals |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('customer', '0010_auto_20170725_2205'), |
||||
('docs', '0005_auto_20170725_2205'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='doc_reason_date', |
||||
field=models.DateField(verbose_name='Дата основания', blank=True, null=True), |
||||
), |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='doc_reason_num', |
||||
field=models.PositiveIntegerField(verbose_name='Номер основания', blank=True, null=True), |
||||
), |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='receiver', |
||||
field=models.ForeignKey(verbose_name='Получатель', blank=True, null=True, related_name='receiver_nakladn', to='customer.Client'), |
||||
), |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='sender', |
||||
field=models.ForeignKey(verbose_name='Отправитель', blank=True, null=True, related_name='sender_nakladn', to='customer.Client'), |
||||
), |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='transport', |
||||
field=models.BooleanField(verbose_name='Есть транспортная накладная', default=False), |
||||
), |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='transport_date', |
||||
field=models.DateField(verbose_name='Дата транспортной накладной', blank=True, null=True), |
||||
), |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='transport_num', |
||||
field=models.PositiveIntegerField(verbose_name='Номер транспортной накладной', blank=True, null=True), |
||||
), |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='user_is_sender', |
||||
field=models.BooleanField(verbose_name='пользователь - отправитель', default=False), |
||||
), |
||||
] |
||||
@ -0,0 +1,18 @@ |
||||
# -*- coding: utf-8 -*- |
||||
from __future__ import unicode_literals |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('docs', '0006_auto_20170730_1522'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='nakladn', |
||||
name='user_is_sender', |
||||
), |
||||
] |
||||
@ -0,0 +1,19 @@ |
||||
# -*- coding: utf-8 -*- |
||||
from __future__ import unicode_literals |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('docs', '0007_remove_nakladn_user_is_sender'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='nakladn', |
||||
name='user_is_sender', |
||||
field=models.BooleanField(verbose_name='пользователь - отправитель', default=False), |
||||
), |
||||
] |
||||
Loading…
Reference in new issue