From 2ad4b98941a5c2e7e6068893d56a82291b9a2134 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Sat, 11 Jan 2025 19:52:28 +0330 Subject: [PATCH] migration file update --- ...model_currency_alter_productmodel_price.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 backend/product/migrations/0008_productmodel_currency_alter_productmodel_price.py diff --git a/backend/product/migrations/0008_productmodel_currency_alter_productmodel_price.py b/backend/product/migrations/0008_productmodel_currency_alter_productmodel_price.py new file mode 100644 index 0000000..8544e6c --- /dev/null +++ b/backend/product/migrations/0008_productmodel_currency_alter_productmodel_price.py @@ -0,0 +1,24 @@ +# Generated by Django 5.0 on 2025-01-11 14:07 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('product', '0007_alter_dollormodel_price'), + ] + + operations = [ + migrations.AddField( + model_name='productmodel', + name='currency', + field=models.CharField(choices=[('dollor', 'دلار'), ('toman', 'تومان'), ('derham', 'درهم')], default='toman', max_length=20, verbose_name='نوع ارز'), + preserve_default=False, + ), + migrations.AlterField( + model_name='productmodel', + name='price', + field=models.PositiveIntegerField(default=0, help_text='قیمت'), + ), + ]