add org_type_field to oragnization type serializer
This commit is contained in:
@@ -85,6 +85,11 @@ class OrganizationType(BaseModel):
|
||||
key = models.CharField(choices=organization_keys, default='EMP', max_length=3)
|
||||
name = models.CharField(max_length=50, unique=True, null=True)
|
||||
code = models.IntegerField(default=0)
|
||||
org_type_field = models.CharField(choices=[
|
||||
('CI', 'city'),
|
||||
('CO', 'country'),
|
||||
('PR', 'province'),
|
||||
], max_length=25, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.key}-{self.name}'
|
||||
|
||||
Reference in New Issue
Block a user