Merge branch 'feature/payments' into dev

remotes/origin/hasaccess
Ivlev Denis 8 years ago
commit e40066e809
  1. 18
      apps/payment/migrations/0011_authorbalance_cause.py
  2. 1
      apps/payment/models.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='Причина отказа'),
),
]

@ -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 = 'Баланс'

Loading…
Cancel
Save