Make Organization.billing_entity nullable
This commit is contained in:
parent
6ed19e90a3
commit
314ecc9c0d
2 changed files with 26 additions and 0 deletions
25
src/servala/core/migrations/0003_billing_entity_nullable.py
Normal file
25
src/servala/core/migrations/0003_billing_entity_nullable.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Generated by Django 5.2b1 on 2025-03-20 08:12
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("core", "0002_billingentity_created_at_billingentity_updated_at_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="organization",
|
||||
name="billing_entity",
|
||||
field=models.ForeignKey(
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
related_name="organizations",
|
||||
to="core.billingentity",
|
||||
verbose_name="Billing entity",
|
||||
),
|
||||
),
|
||||
]
|
|
@ -13,6 +13,7 @@ class Organization(ServalaModelMixin, models.Model):
|
|||
on_delete=models.PROTECT,
|
||||
related_name="organizations",
|
||||
verbose_name=_("Billing entity"),
|
||||
null=True, # TODO: billing entity should be required
|
||||
)
|
||||
origin = models.ForeignKey(
|
||||
to="OrganizationOrigin",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue