prepare allocate tags to organizations api
This commit is contained in:
@@ -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