add stake holders type
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0 on 2025-09-01 12:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('pos_device', '0065_stakeholders_broker_stakeholders_broker_amount_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='stakeholders',
|
||||
name='stake_holder_type',
|
||||
field=models.CharField(choices=[('organization', 'ORGANIZATION'), ('company', 'COMPANY')], default='organization', max_length=150),
|
||||
),
|
||||
]
|
||||
@@ -256,6 +256,15 @@ class StakeHolders(BaseModel):
|
||||
related_name='pos_stake_holders',
|
||||
null=True
|
||||
)
|
||||
HOLDER_TYPES = (
|
||||
('organization', 'ORGANIZATION'),
|
||||
('company', 'COMPANY'),
|
||||
)
|
||||
stake_holder_type = models.CharField(
|
||||
max_length=150,
|
||||
choices=HOLDER_TYPES,
|
||||
default='organization'
|
||||
)
|
||||
broker = models.ForeignKey(
|
||||
Broker,
|
||||
on_delete=models.CASCADE,
|
||||
|
||||
Reference in New Issue
Block a user