diff --git a/apps/payment/migrations/0011_authorbalance_cause.py b/apps/payment/migrations/0011_authorbalance_cause.py new file mode 100644 index 00000000..21b5c2c2 --- /dev/null +++ b/apps/payment/migrations/0011_authorbalance_cause.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.2 on 2018-02-28 11:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('payment', '0010_auto_20180227_0933'), + ] + + operations = [ + migrations.AddField( + model_name='authorbalance', + name='cause', + field=models.TextField(default='', verbose_name='Причина отказа'), + ), + ] diff --git a/apps/payment/models.py b/apps/payment/models.py index 4cdacf68..e25fb6ab 100644 --- a/apps/payment/models.py +++ b/apps/payment/models.py @@ -34,6 +34,7 @@ class AuthorBalance(models.Model): commission = models.DecimalField('Комиссия', max_digits=8, decimal_places=2, default=0) status = models.PositiveSmallIntegerField('Статус', choices=STATUS_CHOICES, default=0) payment = models.OneToOneField('Payment', on_delete=models.CASCADE, null=True, blank=True, verbose_name='Платёж') + cause = models.TextField('Причина отказа', default='') class Meta: verbose_name = 'Баланс'