prepare allocate tags to organizations api

This commit is contained in:
2025-05-27 15:09:22 +03:30
parent bc710c74c6
commit 6f8f9463b0
29 changed files with 951 additions and 48 deletions

View File

@@ -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}'