Update migration to make vat_number non mandatory
This commit is contained in:
parent
6eb4b03afe
commit
e48ae6a39d
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Generated by Django 1.9.4 on 2019-12-21 03:19
|
# Generated by Django 1.9.4 on 2019-12-25 03:00
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -16,12 +16,12 @@ class Migration(migrations.Migration):
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='billingaddress',
|
model_name='billingaddress',
|
||||||
name='vat_number',
|
name='vat_number',
|
||||||
field=models.CharField(default='', max_length=100),
|
field=models.CharField(blank=True, default='', max_length=100),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='userbillingaddress',
|
model_name='userbillingaddress',
|
||||||
name='vat_number',
|
name='vat_number',
|
||||||
field=models.CharField(default='', max_length=100),
|
field=models.CharField(blank=True, default='', max_length=100),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='billingaddress',
|
model_name='billingaddress',
|
|
@ -13,7 +13,7 @@ class BaseBillingAddress(models.Model):
|
||||||
city = models.CharField(max_length=50)
|
city = models.CharField(max_length=50)
|
||||||
postal_code = models.CharField(max_length=50)
|
postal_code = models.CharField(max_length=50)
|
||||||
country = CountryField()
|
country = CountryField()
|
||||||
vat_number = models.CharField(max_length=100, default="")
|
vat_number = models.CharField(max_length=100, default="", blank=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
Loading…
Reference in a new issue