image123
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 5.1.2 on 2025-01-26 17:12
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('product', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='productmodel',
|
||||
old_name='image',
|
||||
new_name='image1',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productmodel',
|
||||
name='image2',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='product_images/'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productmodel',
|
||||
name='image3',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='product_images/'),
|
||||
),
|
||||
]
|
||||
@@ -75,7 +75,9 @@ class ProductModel(models.Model):
|
||||
('derham', 'درهم')
|
||||
)
|
||||
currency = models.CharField(verbose_name='نوع ارز', max_length=20, choices=currency_type)
|
||||
image = models.ImageField(upload_to='product_images/')
|
||||
image1 = models.ImageField(upload_to='product_images/')
|
||||
image2 = models.ImageField(upload_to='product_images/', blank=True, null=True)
|
||||
image3 = models.ImageField(upload_to='product_images/', blank=True, null=True)
|
||||
rating = models.PositiveIntegerField(default=0)
|
||||
view = models.IntegerField(default=0, verbose_name='بازدید')
|
||||
sell = models.IntegerField(default=0, verbose_name='فروش')
|
||||
|
||||
Reference in New Issue
Block a user