add stake holders type

This commit is contained in:
2025-09-01 16:07:56 +03:30
parent 11786cd2a5
commit 129f4ed7a0
3 changed files with 28 additions and 1 deletions

View File

@@ -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),
),
]

View File

@@ -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,