add - fix broker prive
This commit is contained in:
@@ -33,7 +33,6 @@ if not os.getenv("RUNNING_IN_DOCKER"):
|
|||||||
SECRET_KEY = os.environ.get("SECRET_KEY")
|
SECRET_KEY = os.environ.get("SECRET_KEY")
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# 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")
|
DEBUG = os.getenv("DEBUG", "True").lower() in ("1", "true", "yes")
|
||||||
|
|
||||||
ASGI_APPLICATION = "Rasaddam_Backend.asgi.application" # noqa
|
ASGI_APPLICATION = "Rasaddam_Backend.asgi.application" # noqa
|
||||||
|
|||||||
@@ -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),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -255,6 +255,8 @@ class Broker(BaseModel):
|
|||||||
null=True
|
null=True
|
||||||
)
|
)
|
||||||
broker_type = models.CharField(choices=BROKER_TYPES, max_length=20, 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)
|
required = models.BooleanField(default=False)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user