add - fix broker prive

This commit is contained in:
2025-11-09 14:57:18 +03:30
parent c0f289284f
commit cb3af7a778
3 changed files with 25 additions and 1 deletions

View File

@@ -33,7 +33,6 @@ if not os.getenv("RUNNING_IN_DOCKER"):
SECRET_KEY = os.environ.get("SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
# DEBUG = bool(os.environ.get("DEBUG", default=0))
DEBUG = os.getenv("DEBUG", "True").lower() in ("1", "true", "yes")
ASGI_APPLICATION = "Rasaddam_Backend.asgi.application" # noqa

View File

@@ -0,0 +1,23 @@
# Generated by Django 5.0 on 2025-11-09 11:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0081_alter_historicalquotadistribution_description_and_more'),
]
operations = [
migrations.AddField(
model_name='broker',
name='fix_broker_price',
field=models.PositiveBigIntegerField(default=0),
),
migrations.AddField(
model_name='broker',
name='fix_broker_price_state',
field=models.PositiveBigIntegerField(default=0),
),
]

View File

@@ -255,6 +255,8 @@ class Broker(BaseModel):
null=True
)
broker_type = models.CharField(choices=BROKER_TYPES, max_length=20, null=True)
fix_broker_price = models.PositiveBigIntegerField(default=0)
fix_broker_price_state = models.PositiveBigIntegerField(default=0)
required = models.BooleanField(default=False)
def __str__(self):