add video filed to product model
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
migrations/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
|
||||
@@ -78,6 +78,7 @@ class ProductModel(models.Model):
|
||||
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)
|
||||
video = models.FileField(upload_to='product_videos/', 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