change keys of organization type, import search field to users
This commit is contained in:
@@ -75,13 +75,14 @@ class City(BaseModel):
|
||||
|
||||
class OrganizationType(BaseModel):
|
||||
organization_keys = (
|
||||
('EMP', 'empty'),
|
||||
('J', 'Jihad'),
|
||||
('U', 'Union'),
|
||||
('CO', 'Cooperative'),
|
||||
('CMP', 'Companies')
|
||||
)
|
||||
key = models.CharField(choices=organization_keys, max_length=3)
|
||||
name = models.CharField(max_length=50, null=True)
|
||||
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)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user