Skip to content

Commit c19d1c9

Browse files
authored
Merge pull request #29 from buildingSMART/IVS-414_Company_Legal_Name
IVS-414 - Company legal name
2 parents 5779df8 + 8ad837f commit c19d1c9

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

migrations/0008_company_legal_name.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.1.6 on 2025-02-22 14:39
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('ifc_validation_models', '0007_alter_useradditionalinfo_table'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='company',
15+
name='legal_name',
16+
field=models.CharField(blank=True, help_text='Legal name of the Company (optional).', max_length=1024, null=True),
17+
),
18+
]

models.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@ class Company(TimestampedBaseModel):
219219
help_text="Name of the Company."
220220
)
221221

222+
legal_name = models.CharField(
223+
max_length=1024,
224+
null=True,
225+
blank=True,
226+
unique=False,
227+
help_text="Legal name of the Company (optional)."
228+
)
229+
222230
class Meta:
223231

224232
db_table = "ifc_company"

0 commit comments

Comments
 (0)