billing: Move exempt_from_from_license_number_check to Customer model.

This belongs more on the Customer model, since this is a similar
attribute to default_discount.
This commit is contained in:
Mateusz Mandera
2021-06-18 20:43:30 +02:00
committed by Tim Abbott
parent 4ca87d785b
commit bae86ad3da
3 changed files with 35 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
# Generated by Django 3.2.4 on 2021-06-18 18:39
from django.db import migrations, models
class Migration(migrations.Migration):
"""
We haven't set the values for this field for the relevant organizations
as of this moment, so we can simply drop the column from CustomerPlan
and add it to Customer without worrying about losing the values.
"""
dependencies = [
("corporate", "0010_customerplan_exempt_from_from_license_number_check"),
]
operations = [
migrations.RemoveField(
model_name="customerplan",
name="exempt_from_from_license_number_check",
),
migrations.AddField(
model_name="customer",
name="exempt_from_from_license_number_check",
field=models.BooleanField(default=False),
),
]