Add OSB GUID to organization

using a CharField because we do not control the data
This commit is contained in:
Tobias Kunze 2025-09-26 10:10:37 +02:00
parent 313e8cd09d
commit 3ad16ce00b
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,22 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("core", "0007_controlplane_user_info_and_more"),
]
operations = [
migrations.AddField(
model_name="organization",
name="osb_guid",
field=models.CharField(
blank=True,
help_text="Open Service Broker GUID, used for organizations created via OSB API",
max_length=100,
null=True,
verbose_name="OSB GUID",
),
),
]

View file

@ -53,6 +53,15 @@ class Organization(ServalaModelMixin, models.Model):
odoo_sale_order_name = models.CharField(
max_length=100, null=True, blank=True, verbose_name=_("Odoo Sale Order Name")
)
osb_guid = models.CharField(
max_length=100,
null=True,
blank=True,
verbose_name=_("OSB GUID"),
help_text=_(
"Open Service Broker GUID, used for organizations created via OSB API"
),
)
class urls(urlman.Urls):
base = "/org/{self.slug}/"