diff --git a/finance/migrations/0006_remove_invoice_out_id.py b/finance/migrations/0006_remove_invoice_out_id.py new file mode 100644 index 0000000..f78276e --- /dev/null +++ b/finance/migrations/0006_remove_invoice_out_id.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.6 on 2017-11-07 13:41 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('finance', '0005_invoice_is_open'), + ] + + operations = [ + migrations.RemoveField( + model_name='invoice', + name='out_id', + ), + ] diff --git a/finance/models.py b/finance/models.py index 2674a75..8cd05ac 100755 --- a/finance/models.py +++ b/finance/models.py @@ -41,10 +41,9 @@ class Invoice(models.Model): status = models.CharField(verbose_name='Статус', max_length=1, default='W', choices=BILL_STATUSES) price = models.IntegerField(verbose_name='Сумма', null=True, blank=True) real_price = models.IntegerField(verbose_name='Полученная сумма', null=True, blank=True, - help_text='Сумма, минус комиссия') + help_text='Сумма, минус комиссия') bill_method = models.CharField(verbose_name='Способ оплаты', max_length=2, default='Y', choices=BILL_METHOD) key = models.CharField(verbose_name='Ключ платежа', blank=True, max_length=255, default='', editable=False) - out_id = models.CharField(verbose_name='ID внешнего заказа', max_length=100, blank=True, default='', editable=False) comment = models.TextField(verbose_name='Комментарий продавца', help_text='Будет показано пользователю', blank=True, editable=False) bill = models.ForeignKey(to=Bill, verbose_name="Связный счёт")