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.
36 lines
1.2 KiB
36 lines
1.2 KiB
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('store', '0006_auto_20150514_1123'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ProductVariation',
|
|
fields=[
|
|
('id', models.AutoField(serialize=False, auto_created=True, primary_key=True, verbose_name='ID')),
|
|
('variation', models.CharField(max_length=512, default='', verbose_name='Вариация')),
|
|
('price', models.IntegerField(default=0, verbose_name='Цена (тенге)')),
|
|
('in_stock', models.IntegerField(default=1, verbose_name='В наличии (шт.)')),
|
|
],
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='product',
|
|
name='in_stock',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='product',
|
|
name='price',
|
|
),
|
|
migrations.AddField(
|
|
model_name='productvariation',
|
|
name='product',
|
|
field=models.ForeignKey(to='store.Product', related_name='variations', verbose_name='Товар'),
|
|
),
|
|
]
|
|
|