From c0b2d7114730f8fd0724c6be77100a0e3395301b Mon Sep 17 00:00:00 2001 From: Dmitriy Shesterkin Date: Mon, 17 Jul 2017 15:28:40 +0300 Subject: [PATCH] fix date --- .../migrations/0008_auto_20170717_1429.py | 24 +++++++++++++++++++ src/customer/migrations/0009_payment_date.py | 19 +++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 src/customer/migrations/0008_auto_20170717_1429.py create mode 100644 src/customer/migrations/0009_payment_date.py diff --git a/src/customer/migrations/0008_auto_20170717_1429.py b/src/customer/migrations/0008_auto_20170717_1429.py new file mode 100644 index 0000000..0608ede --- /dev/null +++ b/src/customer/migrations/0008_auto_20170717_1429.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('customer', '0007_payment_status'), + ] + + operations = [ + migrations.AddField( + model_name='payment', + name='type', + field=models.PositiveSmallIntegerField(verbose_name='Тип платежа', default=0, choices=[(0, 'Безналичный расчёт'), (1, 'Банковская карта')]), + ), + migrations.AlterField( + model_name='license', + name='payform', + field=models.IntegerField(verbose_name='форма оплаты', default=0, choices=[(-2, 'Бонусная'), (-1, 'Бесплатно'), (0, 'Безналичный расчёт'), (1, 'Банковская карта')]), + ), + ] diff --git a/src/customer/migrations/0009_payment_date.py b/src/customer/migrations/0009_payment_date.py new file mode 100644 index 0000000..4f85e00 --- /dev/null +++ b/src/customer/migrations/0009_payment_date.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('customer', '0008_auto_20170717_1429'), + ] + + operations = [ + migrations.AddField( + model_name='payment', + name='date', + field=models.DateField(verbose_name='Дата', blank=True, null=True), + ), + ]