Updates migration

This commit is contained in:
Christopher Neugebauer 2016-01-22 22:07:59 +11:00
parent 2e89bc4887
commit c13a986f2d

View file

@ -168,7 +168,7 @@ class Migration(migrations.Migration):
name='IncludedProductDiscount', name='IncludedProductDiscount',
fields=[ fields=[
('discountbase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='registrasion.DiscountBase')), ('discountbase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='registrasion.DiscountBase')),
('enabling_products', models.ManyToManyField(to='registrasion.Product', verbose_name='Including product')), ('enabling_products', models.ManyToManyField(to=b'registrasion.Product', verbose_name='Including product')),
], ],
options={ options={
'verbose_name': 'Product inclusion', 'verbose_name': 'Product inclusion',
@ -179,7 +179,7 @@ class Migration(migrations.Migration):
name='ProductEnablingCondition', name='ProductEnablingCondition',
fields=[ fields=[
('enablingconditionbase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='registrasion.EnablingConditionBase')), ('enablingconditionbase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='registrasion.EnablingConditionBase')),
('enabling_products', models.ManyToManyField(to='registrasion.Product')), ('enabling_products', models.ManyToManyField(to=b'registrasion.Product')),
], ],
bases=('registrasion.enablingconditionbase',), bases=('registrasion.enablingconditionbase',),
), ),
@ -187,9 +187,9 @@ class Migration(migrations.Migration):
name='TimeOrStockLimitDiscount', name='TimeOrStockLimitDiscount',
fields=[ fields=[
('discountbase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='registrasion.DiscountBase')), ('discountbase_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='registrasion.DiscountBase')),
('start_time', models.DateTimeField(null=True, verbose_name='Start time')), ('start_time', models.DateTimeField(null=True, verbose_name='Start time', blank=True)),
('end_time', models.DateTimeField(null=True, verbose_name='End time')), ('end_time', models.DateTimeField(null=True, verbose_name='End time', blank=True)),
('limit', models.PositiveIntegerField(null=True, verbose_name='Limit')), ('limit', models.PositiveIntegerField(null=True, verbose_name='Limit', blank=True)),
], ],
options={ options={
'verbose_name': 'Promotional discount', 'verbose_name': 'Promotional discount',
@ -225,12 +225,12 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='enablingconditionbase', model_name='enablingconditionbase',
name='categories', name='categories',
field=models.ManyToManyField(to='registrasion.Category'), field=models.ManyToManyField(to=b'registrasion.Category'),
), ),
migrations.AddField( migrations.AddField(
model_name='enablingconditionbase', model_name='enablingconditionbase',
name='products', name='products',
field=models.ManyToManyField(to='registrasion.Product'), field=models.ManyToManyField(to=b'registrasion.Product'),
), ),
migrations.AddField( migrations.AddField(
model_name='discountitem', model_name='discountitem',
@ -260,11 +260,26 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='cart', model_name='cart',
name='vouchers', name='vouchers',
field=models.ManyToManyField(to='registrasion.Voucher', blank=True), field=models.ManyToManyField(to=b'registrasion.Voucher', blank=True),
), ),
migrations.AddField( migrations.AddField(
model_name='badge', model_name='badge',
name='profile', name='profile',
field=models.OneToOneField(to='registrasion.Profile'), field=models.OneToOneField(to='registrasion.Profile'),
), ),
migrations.AlterField(
model_name='discountforcategory',
name='percentage',
field=models.DecimalField(max_digits=4, decimal_places=1),
),
migrations.AlterField(
model_name='discountforproduct',
name='percentage',
field=models.DecimalField(null=True, max_digits=4, decimal_places=1, blank=True),
),
migrations.AlterField(
model_name='discountforproduct',
name='price',
field=models.DecimalField(null=True, max_digits=8, decimal_places=2, blank=True),
),
] ]