Change stripe_tax_id field to char + regenerate migrations
This commit is contained in:
parent
9310f72cf9
commit
833dc9bdcb
4 changed files with 22 additions and 52 deletions
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Generated by Django 1.9.4 on 2019-12-25 03:00
|
# Generated by Django 1.9.4 on 2019-12-26 06:10
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -13,16 +13,36 @@ class Migration(migrations.Migration):
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='billingaddress',
|
||||||
|
name='stripe_tax_id',
|
||||||
|
field=models.CharField(blank=True, default='', max_length=100),
|
||||||
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='billingaddress',
|
model_name='billingaddress',
|
||||||
name='vat_number',
|
name='vat_number',
|
||||||
field=models.CharField(blank=True, default='', max_length=100),
|
field=models.CharField(blank=True, default='', max_length=100),
|
||||||
),
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='billingaddress',
|
||||||
|
name='vat_number_validated_on',
|
||||||
|
field=models.DateTimeField(blank=True, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='userbillingaddress',
|
||||||
|
name='stripe_tax_id',
|
||||||
|
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(blank=True, default='', max_length=100),
|
field=models.CharField(blank=True, default='', max_length=100),
|
||||||
),
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='userbillingaddress',
|
||||||
|
name='vat_number_validated_on',
|
||||||
|
field=models.DateTimeField(blank=True, null=True),
|
||||||
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='billingaddress',
|
model_name='billingaddress',
|
||||||
name='country',
|
name='country',
|
|
@ -1,25 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.9.4 on 2019-12-25 05:29
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('utils', '0007_auto_20191225_0300'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='billingaddress',
|
|
||||||
name='vat_number_validated_on',
|
|
||||||
field=models.DateTimeField(blank=True, null=True),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='userbillingaddress',
|
|
||||||
name='vat_number_validated_on',
|
|
||||||
field=models.DateTimeField(blank=True, null=True),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,25 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.9.4 on 2019-12-25 13:11
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('utils', '0008_auto_20191225_0529'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='billingaddress',
|
|
||||||
name='stripe_tax_id',
|
|
||||||
field=models.DateTimeField(blank=True, null=True),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='userbillingaddress',
|
|
||||||
name='stripe_tax_id',
|
|
||||||
field=models.DateTimeField(blank=True, null=True),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -14,7 +14,7 @@ class BaseBillingAddress(models.Model):
|
||||||
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="", blank=True)
|
vat_number = models.CharField(max_length=100, default="", blank=True)
|
||||||
stripe_tax_id = models.DateTimeField(blank=True, null=True)
|
stripe_tax_id = models.CharField(max_length=100, default="", blank=True)
|
||||||
vat_number_validated_on = models.DateTimeField(blank=True, null=True)
|
vat_number_validated_on = models.DateTimeField(blank=True, null=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in a new issue