Commit 8e63722d by Vedran Karacic Committed by Matt Drayer

Add missing customer and voucher migrations.

On a fresh install from current master these migrations are missing.
The voucher migration removes the blank parameter from orderlinevouchers.vouchers.
The customer migration changes the editable parameter to False.
parent 22116896
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import oscar.models.fields.autoslugfield
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('customer', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='communicationeventtype',
name='code',
field=oscar.models.fields.autoslugfield.AutoSlugField(populate_from=b'name', validators=[django.core.validators.RegexValidator(regex=b'^[a-zA-Z_][0-9a-zA-Z_]*$', message="Code can only contain the letters a-z, A-Z, digits, and underscores, and can't start with a digit.")], editable=False, max_length=128, separator='_', blank=True, help_text='Code used for looking up this event programmatically', unique=True, verbose_name='Code'),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('voucher', '0003_orderlinevouchers'),
]
operations = [
migrations.AlterField(
model_name='orderlinevouchers',
name='vouchers',
field=models.ManyToManyField(related_name='order_line_vouchers', to='voucher.Voucher'),
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment