prepare allocate tags to organizations api
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0 on 2025-05-25 10:07
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0017_bankaccountinformation_creator_info_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='organization',
|
||||
name='additional_data',
|
||||
field=models.JSONField(default=dict),
|
||||
),
|
||||
]
|
||||
18
apps/authentication/migrations/0019_organizationtype_code.py
Normal file
18
apps/authentication/migrations/0019_organizationtype_code.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0 on 2025-05-26 11:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentication', '0018_organization_additional_data'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='organizationtype',
|
||||
name='code',
|
||||
field=models.IntegerField(default=0),
|
||||
),
|
||||
]
|
||||
@@ -76,6 +76,7 @@ class OrganizationType(BaseModel):
|
||||
)
|
||||
key = models.CharField(choices=organization_keys, max_length=3)
|
||||
name = models.CharField(max_length=50, null=True)
|
||||
code = models.IntegerField(default=0)
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.key}-{self.name}'
|
||||
@@ -118,6 +119,7 @@ class Organization(BaseModel):
|
||||
related_name='parents',
|
||||
null=True
|
||||
)
|
||||
additional_data = models.JSONField(default=dict)
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.name}-{self.type}'
|
||||
|
||||
Reference in New Issue
Block a user