diff --git a/Rasaddam_Backend/settings.py b/Rasaddam_Backend/settings.py index 6a428ee..25aad7a 100644 --- a/Rasaddam_Backend/settings.py +++ b/Rasaddam_Backend/settings.py @@ -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 diff --git a/apps/product/migrations/0082_broker_fix_broker_price_and_more.py b/apps/product/migrations/0082_broker_fix_broker_price_and_more.py new file mode 100644 index 0000000..f40526a --- /dev/null +++ b/apps/product/migrations/0082_broker_fix_broker_price_and_more.py @@ -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), + ), + ] diff --git a/apps/product/models.py b/apps/product/models.py index 3e9dd25..667dbd7 100644 --- a/apps/product/models.py +++ b/apps/product/models.py @@ -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):