You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.5 KiB
39 lines
1.5 KiB
# Generated by Django 2.0.6 on 2018-11-01 15:46
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('payment', '0025_giftcertificate_usergiftcertificate'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='GiftCertificatePayment',
|
|
fields=[
|
|
('payment_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='payment.Payment')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Платеж за подарочный сертификат',
|
|
'verbose_name_plural': 'Платежи за подарочные сертификаты',
|
|
},
|
|
bases=('payment.payment',),
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='giftcertificate',
|
|
options={'ordering': ('price',)},
|
|
),
|
|
migrations.AlterField(
|
|
model_name='giftcertificate',
|
|
name='price',
|
|
field=models.DecimalField(decimal_places=2, default=0, max_digits=8),
|
|
),
|
|
migrations.AddField(
|
|
model_name='giftcertificatepayment',
|
|
name='gift_certificate',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='payments', to='payment.GiftCertificate', verbose_name='Подарочный сертификат'),
|
|
),
|
|
]
|
|
|